permission issue
Alf-Ivar Holm
alfh at student.matnat.uio.no
Wed Oct 26 08:53:11 UTC 2005
Darryl Clarke <smartssa at gmail.com> writes:
> If you don't want joe to be able to delete a file, but able to read,
> make sure root owns the parent folder.
... or you can make the file immutable with chattr(1) (if your file
system is ext2/ext3):
sudo chattr +i file
... and use lsattr(1) to look at the extended attributes.
Making a file immutable has some side effects though (from "man
chattr"):
A file with the `i' attribute cannot be modified: it cannot be
deleted or renamed, no link can be created to this file and no
data can be written to the file. Only the superuser or a process
possessing the CAP_LINUX_IMMUTABLE capability can set or clear
this attribute.
But, if it is what you want, use it!
Note: other file systems may have other properties.
Affi
More information about the ubuntu-users
mailing list