Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-28-2005, 11:02 AM   #1
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
samba file/directory permissions

Hi All

I have a FC3 running as a samba server. I have two people on XP pro machines that are sharing a directory. Both want to be able to read and write to the others files. If Person1 writes a Word file and then Person 2 tries to write/edit it, it gives a read only message. Here is my smb.conf share section

comment = private directory
path = /directory/private
valid users = Person1 Person2
public = no
writable = yes
printable = no
read only = no
browseable = yes
create mask = 0777

I have Person1 and Person2 in the same group and the private directory. What am I missing? Could it be who owns the private directory (which is Person1)?

Also, if Person1 creates a directory under the private directory it gives rwxr-xr-x permissions. How can i force it to make it writable? Many thanks!!!
Old 06-28-2005, 11:44 AM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Easiest idea is to use the force group = directive, place both users as members of that group and change the file group owner to the chosen group.
File permissions only need to be 660
Directory permissions 770

comment = private directory
path = /directory/private
valid users = +users
force group = users
writable = yes
printable = no
browseable = yes
available = yes
create mask = 0660
directory mask = 0770

do chown -R .users /directory/private
and add both users to the "users" group

"users" can be any group that exists on your system that has no special priveleges..

You will get write/read-only issues when a file is considered open by samba and a second person tries to open it. Do smbstatus to see open files and see if this is another problem.
Old 06-29-2005, 08:03 AM   #3
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
Thank you. Worked like a charm.


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-3, Active Directory, file permissions wellssh Red Hat 0 10-20-2005 07:41 AM
Samba directory permissions - can't write from XP ajkrishock Linux - Networking 2 10-16-2005 12:56 PM
How do I mount a samba directory with write permissions? xerogravity Linux - Newbie 7 12-05-2004 01:43 PM
Samba directory permissions and VSFTPD t3___ Linux - Software 5 05-12-2004 06:36 PM
File and Directory permissions plasmapudding Red Hat 3 09-09-2003 10:26 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:57 AM.

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