Hi, New to Samba & this list, so please forgive if I make a faux pas. I've got a Redhat 7.3 box with Samba, & 2 Win stations, called "ws1" & "ws2". When either station creates files on the server, all the files get created with permissions of rw-r--r-- (644). How do I get them created with 777? ws1 & ws2 are both set up as entries in the /etc/passwd file & in the samba password file, with "umask 000" in their respective .bash_profile's. root user also has umask 000. The smb.conf attempts are shown below: [homes] comment = Home Directories browseable = yes public = yes writable = yes create mode = 0777 ; valid users = %S directory mode = 0777 read only = no # If you want users samba doesn't recognize to be mapped to a guest user ; map to guest = bad user Thanks for any help, & I'll go ahead & say "Duh!" right now. Glen
Glen, Add: force create mode = 0777 force directory mode = 0777 to the config file. That is a sure way to accomplish your goal. You could change the default umask for bash in "/etc/bashrc", but this may or may not affect the default umask of Samba created files. You could try it though. :-/ Troy>>> "Glen Overman" <gleno@acsmaster.com> 02/06/03 03:32PM >>>Hi, New to Samba & this list, so please forgive if I make a faux pas. I've got a Redhat 7.3 box with Samba, & 2 Win stations, called "ws1" & "ws2". When either station creates files on the server, all the files get created with permissions of rw-r--r-- (644). How do I get them created with 777? ws1 & ws2 are both set up as entries in the /etc/passwd file & in the samba password file, with "umask 000" in their respective .bash_profile's. root user also has umask 000. The smb.conf attempts are shown below: [homes] comment = Home Directories browseable = yes public = yes writable = yes create mode = 0777 ; valid users = %S directory mode = 0777 read only = no # If you want users samba doesn't recognize to be mapped to a guest user ; map to guest = bad user Thanks for any help, & I'll go ahead & say "Duh!" right now. Glen -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
On Thu, 2003-02-06 at 16:32, Glen Overman wrote:> Hi, > New to Samba & this list, so please forgive if I make a faux pas. > I've got a Redhat 7.3 box with Samba, & 2 Win stations, called "ws1" & "ws2". > When either station creates files on the server, all the files get created with > permissions of rw-r--r-- (644). How do I get them created with 777? > ws1 & ws2 are both set up as entries in the /etc/passwd file & in the > samba password file, with "umask 000" in their respective .bash_profile's. > root user also has umask 000. The smb.conf attempts are shown below:are you looking for force create mode (S) This parameter specifies a set of UNIX mode bit permissions that will always be set on a file created by Samba. This is done by bitwise 'OR'ing these bits onto the mode bits of a file that is being created or having its permissions changed. The default for this parameter is (in octal) 000. The modes in this parameter are bitwise 'OR'ed onto the file mode after the mask set in the create mask parameter is applied. See also the parameter create mask for details on masking mode bits on files. See also the inherit permissions parameter. Default: force create mode = 000 Example: force create mode = 0755 would force all created files to have read and execute permissions set for 'group' and 'other' as well as the read/write/execute bits set for the 'user'. -- Bradley W. Langhorst <brad@langhorst.com>