Folder permissions problem with Samba
Have this Samba problem on 3 separate Red Hat 9.0 servers.
Create a public directory with all permissions open. Have problems when things get added to this public share:
1) User copies a folder from his local Windows PC to the share. Only that user can modify a file. Other users can read, but not write to the file.
2) User creates a new folder on the public share and copies some files into it. All users can read/write the files.
3) User creates a new empty folder on the public share. Only that user can create a file in that share, other users can not.
Is this a Samba or a umask problem?
When a user copies a file to the share, or creates a new file or directory on the share, the system sets the user.group of the new file to match the user. Look into using the various "force"s in the share...
"force user = whomever" forces any new file to be assigned to the user whomever.
"force group = whichever" does the same for the group.
"force create mode = ####" sets the permissions for any new file on the share.
"force directory mode = ####" does the same for any new directories on the share.
PS -- Don't cross-post the same question to several different forums... It's against the rules, and verboten. Some of the mods tend to get a bit upset about it.
a few questions
hi there, i have a few questions about this answer.
Where do i write those lines???
Is that whomever and whichever the names of my user and group or should i write the words whomever ans whichever?
They go in the /etc/samba/smb.conf, under the share definition that you want them to apply to. If you have a share called wenus, and want all the files created in it to belong to the user bob, you would have something like...
thanks ranger_nemo, it was very useful your answer. it worked
|All times are GMT -5. The time now is 05:03 PM.|