[Samba] Deleting undeletable files gives no error

Gerald (Jerry) Carter jerry at samba.org
Fri Feb 24 17:33:44 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Shaw wrote:

> Then I do the same exact test except mount /mnt/test readonly.  Now,
> when I delete foobar.txt, it seems to work, but refreshing the XP
> window or doing "dir" again shows the file wan't actually deleted.
> Obviously you can't delete a file off of a readonly filesystem, but
> (and here's the problem) shouldn't there have been an error message
> given?  The delete failed, but the user wasn't informed.

This is by design.

The internal checks for deleting a file (needed for delete-on-close
semantics) only look at the file system permissions.  Maybe Jeremy
has an idea but if you mount a filesystem ro, I would say just mark the
share with (read only = yes).  I don't see a need to add any other changes.




cheers, jerry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD/0N4IR7qMdg1EfYRAolHAKCWRakKiLvpuCZZIcSpoHP9v+MEMACg8CYG
BF6Qjsn0Oy2fo4cyCqOzFhk=
=RT9x
-----END PGP SIGNATURE-----


More information about the samba mailing list