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

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



At 9:39 AM -0500 2/1/02, AY@Home is rumored to have typed:

> 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.

   Er...first off, you have to su to root before you can use chown - that is,
you must be the superuser before you can change the ownership of a file.
Secondly, you don't need chgrp in this instance; "chown root.root filename"
works just fine and saves some time. And if it were _me,_ I'd change it to
644 instead of 444; call me silly, but it makes more sense visually to see
that root can write to the file in an ls -lag.

         Charlie