[Samba] Permissions 101

Tim Booher tbbooher at cox.net
Tue May 11 05:03:01 GMT 2004


Hello. I have a Security = share smb.conf file and everything works fine,
except that my wife 'sara' has only read access to the directory I am trying
to share \\myserver\data\ on the linux machine.

I am running two WinXP machines (home and pro) and trying to share files in
this directory. If I check permissions I get ie:

drwxrwxr--    2 john      myadmins       4096 May  4 03:11 2003_12
drwxrwxr--    2 john      myadmins       4096 May  4 03:08 2004_01

or

-rwxrwxr--    1 john      myadmins     669914 Feb 28 15:37 114_1467.JPG
-rwxrwxr--    1 john      myadmins     759455 Feb 28 15:38 114_1468.JPG

My smb.conf is set up as:
# 040502
#
[global]
workgroup = myworkgroup
netbios name = myserver
security = share
encrypt password = Yes
smb passwd file = /etc/samba/smbpasswd
passwd program = /usr/bin/passwd %u
server string = s %v on %L

[homes]
comment = John and Sara's Home Directories
# we set the valid users = to the current share's name
valid users = john # I know I should use something else here, but can't get
anything else to work
read only = No
# we might want to set this to No after troubleshooting
browseable = No
hide dot files = Yes

[data]
# this is the main share we run all our files from
comment=John and Sara's data store
path = /home/data
valid users = john sara
read only = No
writeable = Yes

My /etc/group has the following lines inside:

myadmins:x:500:john,sara

And my passwd file has the needed entries.

My wife is only able to get read permissions to this directory, she is a
member of Myserver\myadmins, but that doesn't seem to help. I am new to this
and very confused. Can anyone help? I have, of course, added the users to
the smbpasswd.

Tim




More information about the samba mailing list