How do you set up a directory so that files being copied into it from a windows machine using a samba share will copy as read only? At the moment they are rwx- - - - - - so I have to chmod manually when a doc is copied in. I've tried to set the whole directory as 755 using the -R option, which works for stuff already there but stuff copied in afterwards is still unreadable. nb - the files are moved in by various mortal users. Thanks! Jenny.
How do you set up a directory so that files being copied into it from a windows machine using a samba share will copy as read only? At the moment they are rwx- - - - - - so I have to chmod manually when a doc is copied in. I've tried to set the whole directory as 755 using the -R option, which works for stuff already there but stuff copied in afterwards is
still
unreadable. nb - the files are moved in by various mortal users.
Dunno if this will help your problem, but there is an option in smb.conf called 'force create mode'
You bung it in with the other properties of the share and set it to whatever you want the permissions to be on files that are 'created' on the samba share, eg. 'force create mode = 0755'. Theres a more detailed blurb in the smb.conf man page.
Cheers
Mat