Click to See Complete Forum and Search --> : Special Samba Groups


matte03
05-10-2004, 06:51 PM
Hello
My boss wanted me to play around with paperless officing and I figured I would use Linux and Samba for the file access. There are 3 or 4 users that are allowed to modify these files and directories but the other users are only allowed to read them. How could I do this with Samba? Much appreciated.
Matt

GaryJones32
05-11-2004, 12:15 AM
you use in smb.conf

security = user

so everybody with access has an account on the Linux box
then it's easy
create a group and add your users to it
an example from smb.conf
# A publicly accessible directory, but read only, except for people in
# the "staff" group
[public]
comment = Public Stuff
path = /home/samba
public = yes
read only = yes
write list = @staff
#you can make sure the newly created files come out with proper permissions
directory mask = 764
create mask = 764

make your share directory
as root
mkdir /home/samba
chown root:staff /home/samba
chmod 764 /home/samba

i hope that's close to right anyway