LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba permissions problem (https://www.linuxquestions.org/questions/linux-newbie-8/samba-permissions-problem-678049/)

Seventh 10-21-2008 09:23 AM

Samba permissions problem
 
Hi folks,

I'm having a bit of a problem with my Samba setup and was hoping someone could lend some insight. Right now I have a public share that exists at /share/stuff. It's 777 and everything (right now) is owned by root and in the samba group. Existing files are no problem, people can copy/move/etc them around.

The problem I run into is that if I'm logged into samba as seventh, and I drop a file in /share/stuff, the file that's created there is now owned by me and unreadable by anyone else, as well as created with -rwxrw-r-- permissions instead of 777.

How do I go about getting new files dropped into this share to assume the same 777/samba/wide open permissions as existing files, instead of being created/owned by the user?

Thanks!

helptonewbie 10-21-2008 03:15 PM

there are ways to do this... i haven't used samba for ages so not sure howmuch help this will be but.. in the samba config file thare parameters you would be able to set for that share to foracbly set the umask on the share, but theres more options than just umask theres like create folder perms and create file perms etc etc...

yes just looked into the smb.conf file... you should be able to change things like:-
create mask = 0777
directory mask = 0777
force directory mode
force directory security mode

and you can also do things like
force group = allusers
#not sure if there is a force user

But thats where i'd start looking if i was you, not sure if samba is able to force the owner user, but i hope this helps you in your quest.

Cheers


All times are GMT -5. The time now is 04:11 PM.