[Digikam-users] How to keep digiKam from deleting image files
Jonas Norlander
jonorland at gmail.com
Wed Jun 26 19:45:19 BST 2013
2013/6/21 Elle Stone <l.elle.stone at gmail.com>:
> On 6/20/13, Christoph Siedentop <christoph at siedentop.name> wrote:
>
>> is this running on Linux or Windows? Also what version of digikam are you
>> using?
>>
> I'm using digiKam 3.2 running under Gentoo Linux.
>
>> This is of course not what should happen. But normally the operating system
>> protects files from being deleted.
>>
> Alas it turns out to not be true that under Linux making a file
> "read-only" automatically protects the file from being deleted.
> "Read-only" only protects the file from being modified. If you own the
> folder the image is in, you can delete it. Try for yourself!
>
> Apparently under Windows you can make a file "read-only +
> do-not-delete", but not under Linux, because of the way Linux file
> permissions work.
You can make the files immutable with the chattr command. Isn't that
what you are looking for?
It's easy to forget but Linux do support Extended Attributes and Posix
Access Control Lists the normal file permissions.
See chattr, lsattr, setfattr, getfattr, setfacl and getfacl commands
for more info.
/ Jonas
More information about the Digikam-users
mailing list