Hello I'm running Samba 3.6.6 on an ARM Debian appliance. While I can successfully copy files from a Windows 7 host to Samba, Windows won't let me delete files on the Samba host: "File cannot be deleted. Please remove the write protection." Performing this operation as Administrator makes no difference, and no information is reported in /var/log/samba/log.smbd. Here's my very basic /etc/samba/smb.conf: ==================[global] workgroup = WORKGROUP netbios name = LINUX ;Important: Otherwise, doesn't switch to Unix "nobody" -> Err 5 Access denied security = share log level = 2 [tmp] path = /tmp comment = No need for Unix/Samba passwords readonly = no guest ok = yes ;browseable = yes ================== The default /etc/passwd already contains a "nobody" user, which I read is used by Samba for the guest account unless otherwise specified: ==================# grep nobody /etc/passwd nobody:x:65534:65534:nobody:/nonexistent:/bin/sh ================== Finally, here's one of the files in /tmp that I wanted to delete from Windows: ==================-rwxr--r-- 1 nobody nogroup 87723 Nov 17 2004 dummy.html* ================== Any idea what could be causing this issue? Thank you. -- View this message in context: http://samba.2283325.n4.nabble.com/3-6-6-Windows-won-t-let-me-delete-files-tp4657141.html Sent from the Samba - General mailing list archive at Nabble.com.
On Wed, Nov 27, 2013 at 9:11 PM, Winfried <codecomplete at free.fr> wrote:> > While I can successfully copy files from a Windows 7 host to Samba,Windows> won't let me delete files on the Samba host: "File cannot be deleted.Please> remove the write protection."It looks like the file is write protected, it means it may be currently in use by other application either on samba server or on Windows. Also check the windows file attributes> > log level = 2Try increasing log level to 3 or 4.> The default /etc/passwd already contains a "nobody" user, which I read is > used by Samba for the guest account unless otherwise specified:That is correct.> ==================> # grep nobody /etc/passwd > nobody:x:65534:65534:nobody:/nonexistent:/bin/sh > ==================> > Finally, here's one of the files in /tmp that I wanted to delete from > Windows: > ==================> -rwxr--r-- 1 nobody nogroup 87723 Nov 17 2004 dummy.html* > ==================It doesn't seem to be a problem of permission. If it were the problem of permission windows will give the error like below. 'You need permission to perform this action'
Problem solved: All it took is replacing "security=share" with the following: security = user ;will map user to "nobody" map to guest = Bad User Just like with "security=share", the user won't be prompted by a login/passwd, but this time, will be allowed to rename/delete files and directories. Thanks everyone for the help. -- View this message in context: http://samba.2283325.n4.nabble.com/3-6-6-Windows-won-t-let-me-delete-files-tp4657141p4657312.html Sent from the Samba - General mailing list archive at Nabble.com.