[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Keeping a file from being deleted



Chowning the file to root will not prevent it from being deleted, you need to chown/chmod the directory for that.

Alternatively use chattr:

chattr +i filename

i means immutable. The attribute prevents the file from being modified, and forbids the addition or removal of hard links to the
file.

Cheers,
Ben Liddicott
----- Original Message -----
From: "AY@Home" <ayoung78@xxxxxxxx>

> If you mean chown root/chgrp root and then chmod 444 the file in question I
> tried that last night and again just now no luck.