LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2008, 10:23 AM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
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!
 
Old 10-21-2008, 04:15 PM   #2
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Permissions Problem jorbot Linux - Networking 3 06-09-2008 05:53 AM
Samba permissions problem Hans Vanpee Linux - Networking 2 01-27-2006 10:43 AM
Samba problem - no permissions Seventh Linux - Software 5 11-08-2005 06:05 AM
Samba Permissions Problem Stormblade Linux - Software 1 11-12-2004 08:09 AM
Samba Permissions Problem gigglesnorter Linux - Software 0 05-24-2004 05:37 AM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration