Hello
I'm having a weird issue with Samba 3.6.6 on both Debian7 and Ubuntu 12.10 while using "security=share (security=user works OK but I'd like users to not be prompted for a login/password).
Here's the issue: I can create/copy files and directories from Windows (7 and XP), I can modify the content of a file, but Samba won't let me rename/delete files and directories.
This is puzzling, since the owner + access rights look fine:
Code:
# ll /usr/share/samba/shared-dir
drwxr-xr-x 2 nobody nogroup 4096 Nov 30 12:24 dummydir/
-rwxr--r-- 1 nobody nogroup 4 Nov 30 12:24 test.txt*
Unless otherwise set, Samba uses user "nobody" when using "guest=ok", so I guess the issue isn't related to Unix file access rights.
Here's the minimal smb.conf:
Code:
[global]
workgroup = WORKGROUP
netbios name = LINUX
;Important: Otherwise, doesn't switch to Unix "nobody" -> Err 5 Access denied
security = share
[shared-dir]
path = /usr/share/samba/shared-dir
comment = No need for Unix/Samba passwords
readonly = no
public = yes
guest ok = yes
Any idea what it could be?
Thanks for any hint.
---
Edit: Problem solved. Just replace "security=share" with the following:
Code:
security = user
;forces user to "nobody"
map to guest = Bad User