[Samba] Cannot Delete Files on Write-able Share

Youssef Eldakar
2005-03-20T08:09:43Z

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