Configure Samba to create files of given permission
If I create a directory or file from a Windows PC on a Samba shared linux folder, they have the following permissions.
Code:
drwxrwxr-x. 2 phped phped 4096 Apr 15 05:28 test How can I do this? My /etc/samba/smb.conf file is: Code:
[global] |
If I'm not mistaken, you need to make an addition to the [global] section of samba.conf. Something like this:
Code:
# If you want to create files with owner=rwx, group=rwx, other=rx permissions, set |
I suspect those are the linux permissions set on the folder on the server side. Try "force create mode = 775"
|
Since I already have "create mask = 0775" in the specific shared folder, I don't think it is necessary in the global section. I guess it is a good idea to put it there so all individual folders inherit it.
"force create mode = 775" did the trick. I still don't understand why both "force create mode" and "create mask" (synonym for "create mode") for used for files, and "force directory mode" and "directory mask" (synonym for "directory mode") are used for directories. According to http://www.samba.org/samba/docs/man/...tml#CREATEMASK, Quote:
|
All times are GMT -5. The time now is 11:56 AM. |