LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2005, 10:13 AM   #1
thegnu
Member
 
Registered: May 2004
Location: St. Petersburg, FL USA
Distribution: Arch Linux, Fedora Core 3
Posts: 51

Rep: Reputation: 15
smb.conf entry for rwx access by multiple users


I've set up a samba server with a public directory. The problem I run into is that files that users create are unwriteable by others.

I don't really understand masks, and was wondering what the correct masking would be to set up full read/write/create/delete permissions for directories and files.

Does anyone have a sample smb.conf entry I could see? Thanks!
 
Old 05-13-2005, 09:24 PM   #2
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
What I generally do is in smb.conf add a create mask like so:

Code:
[sharename]
comment = Shared Dir
path = /path/to/dir
read only = no
public = yes
write list = @smbusers
force group = smbusers
force create mode = 0664
force directory mode = 0775
Then add all of the users to be able to write to that directory to the smbusers group (you'll need to create the group):
Code:
usermod -G smbusers username
Set the directory setgid (chmod g+s /dirname is the easiest)

then chown the directory to root.smbusers (don't forget to also chown any existing files as well)

Last edited by zeos; 05-14-2005 at 07:05 AM.
 
  


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 - RWX for all Users joshnya Linux - Newbie 2 05-17-2005 11:28 AM
smb.conf and adding users 11red Linux - Networking 1 04-06-2005 02:05 PM
how do i modify my smb.conf to allow anyone access ... Lleb_KCir Linux - Software 4 11-27-2004 04:55 PM
Samba Share SMB.CONF Access Denied mikeaustn Linux - Software 1 09-28-2004 03:14 PM
guest access to a share in smb.conf ?? ludeKing Linux - Networking 1 10-27-2003 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:00 AM.

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
Open Source Consulting | Domain Registration