[scponly] .ssh
Tony J. White
tjw at webteam.net
Wed Feb 11 13:37:40 EST 2004
> Would it not be sufficient for .ssh to be owned by root, and to deny
> group and other write permissions?
No, directory permissions over-ride the permissions of the files inside them
when it comes to deletion.
Example (as user tjw):
mkdir /home/tjw/test
sudo chown root:root /home/tjw/test
sudo chmod a-rxw /home/tjw/test
rmdir /home/tjw/test
However, if the file attribute 'immutable' is set with chattr, the file
cannot be deleted by anyone (even root) until the immutable bit is removed.
-Tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ccs.neu.edu/pipermail/scponly/attachments/20040211/75fa4a95/attachment.bin
More information about the scponly
mailing list