l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Jun 29 18:24

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Samba - Permissions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Samba - Permissions


I want to setup a samba so that each user can write to their own
directory, and write to the other samba user's directory if desired.

I want the files own by the user who wrote them, but anyone in
the group can edit them

(more detail)
I setup a box (debian testing, not that that much matters in this case) to
run Samba upon to serve two windows machines.

I built 2 users (jay, stacy), whose primary group is "staff".

I built 2 directories

chown -R jay.staff /home/jay
chown -R stacy.staff /home/stacy

So now if I logon to the linux box as stacy, I can write to jay's directory
and visa versa.

But when I do it from windows via the samba share I get permission denied.
I even set "force group" in my samba.conf (below)

It seems I have things setup the way I'd think it would work, but
its not working the way I wanted.  Anyone see my error?


# Samba config file created using SWAT
# from (
# Date: 2004/06/28 20:28:19

# Global parameters
 server string = %h server (Samba %v)
 obey pam restrictions = Yes
 passdb backend = tdbsam, guest
 passwd program = /usr/bin/passwd %u
 passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
 syslog = 0
 log file = /var/log/samba/log.%m
 max log size = 1000
 dns proxy = No
 panic action = /usr/share/samba/panic-action %d
 comment = Windows Shares
 path = /home/shr
 invalid users = root
 guest ok = Yes

 comment = All Printers
 path = /tmp
 create mask = 0700
 printable = Yes
 browseable = No

 comment = Printer Drivers
 path = /var/lib/samba/printers

 comment = All Home Directories
 path = /home
 force user = nobody
 force group = staff

 comment = Home Directories
 path =
 force group = staff
 read only = No
 create mask = 0770
 directory mask = 0770
 guest ok = No

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.