[Samba] Cannot Delete Files on Write-able Share

John H Terpstra
2005-03-20T09:15:11Z

Youssef,

You need to either back out the SP2 update or upgrade to Samba-3.0.12.

- John T.

On Sunday 20 March 2005 01:09, Youssef Eldakar wrote:
> I cannot delete files on a Samba 3.0.8 write-able share. Deleting folders
> works fine. I also have no problem modifying the content of or moving files
> I cannot delete. Connecting from Windows XP SP2 and attempting to delete a
> file, I see the following lines in the Samba logs:
>
> [2005/03/20 09:54:25, 1] smbd/service.c:make_connection_snum(648)
>   archivist-y (172.20.0.201) connect to service pub initially as user
> sticky (uid=517, gid=517) (pid 21334) [2005/03/20 09:54:25, 1]
> smbd/service.c:close_cnum(836)
>   archivist-y (172.20.0.201) closed connection to service pub
> [2005/03/20 09:54:26, 1] smbd/service.c:make_connection_snum(648)
>   archivist-y (172.20.0.201) connect to service pub initially as user
> sticky (uid=517, gid=517) (pid 21334) [2005/03/20 09:54:26, 0]
> tdb/tdbutil.c:tdb_log(725)
>   tdb(/var/cache/samba/locking.tdb): expand_file write of 1024 failed
> (Success) [2005/03/20 09:54:26, 0]
> smbd/trans2.c:set_delete_on_close_over_all(2863)
> set_delete_on_close_internal: failed to change delete on close flag for
> file tmp/New Text Document.txt [2005/03/20 09:54:26, 0]
> smbd/trans2.c:set_delete_on_close_over_all(2863)
> set_delete_on_close_internal: failed to change delete on close flag for
> file tmp/New Text Document.txt [2005/03/20 09:54:26, 0]
> smbd/close.c:close_normal_file(192)
>   close_normal_file: failed to change delete on close flag for file tmp/New
> Text Document.txt [2005/03/20 09:54:30, 1] smbd/service.c:close_cnum(836)
>   archivist-y (172.20.0.201) closed connection to service pub
> [2005/03/20 09:54:32, 1] smbd/service.c:make_connection_snum(648)
>   archivist-y (172.20.0.201) connect to service pub initially as user
> sticky (uid=517, gid=517) (pid 21334) [2005/03/20 09:54:32, 1]
> smbd/service.c:close_cnum(836)
>   archivist-y (172.20.0.201) closed connection to service pub
> [2005/03/20 09:54:32, 1] smbd/service.c:make_connection_snum(648)
>   archivist-y (172.20.0.201) connect to service pub initially as user
> sticky (uid=517, gid=517) (pid 21334) [2005/03/20 09:54:32, 1]
> smbd/service.c:close_cnum(836)
>   archivist-y (172.20.0.201) closed connection to service pub
>
> My configuration file is as follows:
>
> [global]
>   workgroup = ARCHIVE
>   max log size = 0
>   log file = /var/log/samba/%m.log
>   security = user
>   encrypt passwords = yes
>   smb passwd file = /etc/samba/smbpasswd
>   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>   create mode = 0644
>   directory mode = 0755
> [pub]
>   path = /pub
>   read only = no
>
> Youssef Eldakar
> Bibliotheca Alexandrina

--
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.