DrDamnit
asked on
Guest user in Samba with full read / write / delete?
I have a need to setup an unprotected network share where people can dump non-sensitive information.
The directory that we are using is owned by the user:group office:office (this is a Debian box).
What I want is:
1. Map the guest user to office
2. Allow the guest user (as office) to have complete permissions over the contents of this directory.
Currently, the share definition looks like this:
...but when the clients try to delete a directory out of the trash share, it tells you that you don't have permissions.
What config am I missing?
The directory that we are using is owned by the user:group office:office (this is a Debian box).
What I want is:
1. Map the guest user to office
2. Allow the guest user (as office) to have complete permissions over the contents of this directory.
Currently, the share definition looks like this:
[trash]
comment = Dump your crap here.
path = /home/office/trash
admin users = office
read only = No
create mask = 0777
force create mode = 0777
force security mode = 0777
directory mask = 0777
force directory mode = 0777
force directory security mode = 0777
guest ok = Yes
guest user = office
...but when the clients try to delete a directory out of the trash share, it tells you that you don't have permissions.
What config am I missing?
Can you post smb.conf? Can clients delete file?
ASKER
[global]
server string = %h server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword: * %n\n *password\supdated\ssucces sfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-act ion %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[trash]
comment = Dump your crap here.
path = /home/office/trash
admin users = office
read only = No
create mask = 0777
force create mode = 0777
force security mode = 0777
directory mask = 0777
force directory mode = 0777
force directory security mode = 0777
guest ok = Yes
guest user = office
server string = %h server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:*
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-act
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[trash]
comment = Dump your crap here.
path = /home/office/trash
admin users = office
read only = No
create mask = 0777
force create mode = 0777
force security mode = 0777
directory mask = 0777
force directory mode = 0777
force directory security mode = 0777
guest ok = Yes
guest user = office
ASKER
It seems to be a file system permissions problem. If I have a directory (d1) in the share with a file in it (f1) and set the permissions for them both to 777, I can delete.
777 is not a good set of permissions to use.
It seems that since the files are owned by the user 'office', that if guest is mapped to office, then people accessing the shares should have '7' (rwx) access to the files. But, that's apparently not happening....
Why?
777 is not a good set of permissions to use.
It seems that since the files are owned by the user 'office', that if guest is mapped to office, then people accessing the shares should have '7' (rwx) access to the files. But, that's apparently not happening....
Why?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.