01-11-2007, 01:32 PM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
The "!" is to override and ignore complaints. Since the user owns the file he has permissions on it no matter what. Without write permission explicitly given it will complain about attempts to write. So if you try to rm the file it would prompt you but wouldn't prevent you. If you do rm -f (DANGER in this command) on the file you're telling it don't even prompt me - just do it.
If you really want a user NOT to be able to write to a file you should make someone else the owner and then put him in a group that has access to the file and remove write from group and other.
|
|
|