Operating System - HP-UX
1836373 Members
2274 Online
110100 Solutions
New Discussion

Re: File permission changed after I modified share in the smb.conf

 
Jason Liang
New Member

File permission changed after I modified share in the smb.conf

Hi,

A strange thing happened when I modified one of the file share name in the SAMBA configuration.

Before:

[aaa$]
path = /aaa/b
writeable = Yes
create mask = 0777
directory mask = 0777
guest ok = Yes

Changed to:

[new$]
path = /aaa
writeable = Yes
create mask = 0770
directory mask = 0770
guest ok =yes

When I restarted SAMBA,

The file permission in /aaa/b became:

-rwxrw---- 1 smbnull smbnull 311806 Feb 22 14:15 file1


Any idea why this happened?

THanks in advance!


Jason
1 REPLY 1
Craig Rants
Honored Contributor

Re: File permission changed after I modified share in the smb.conf

Here are some smb.conf options to consider

create mask
directory mask
force create mode
force directory mode

These options will change/force permission changes in a manner you prescribe.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut