The Samba-Bugzilla – Bug 1912
samba ignores chattr attributes
Last modified: 2004-10-22 11:16:38 UTC
if i setup a file, with the attribute 'Undeletable', samba will delete the file
Can you give more information, including *exactly* how you have set up Samba on
the share, what user you're doing this as and what you did.
(In reply to comment #1)
> Can you give more information, including *exactly* how you have set up Samba
> the share, what user you're doing this as and what you did.
I logged in via ssh, created a file and gave it the undeletable attribute
#chattr +u file
My share setup looks like this:
comment = asdf
path = /home/jon
guest ok = No
browseable = Yes
read only = No
valid users = jon
Then, browsed to the share, and deleted the file.
This is not a Samba bug. You're misunderstanding the meaning of the 'u'
bit in chattr. From the man page :
When a file with the ‘u’ attribute set is deleted, its contents are
saved. This allows the user to ask for its undeletion.
This doesn't stop the file from being deleted, it specifies what can happen
after. Closing as not a bug.