Rick DeNatale wrote:
Just being a stickler here, but the u+x and a-x in those chmod commands is for the executable bit. Probably what you intended to type was:It shouldn't. /etc/fstab is meant to be read/only. On my linux systems, I give no-one write permission on /etc/fstab. If I need to change it I
sudo chmod u+x /etc/fstab sudo myfavEditor /etc/fstab sudo chmod a-x /etc/fstab
chmod u+w
chmod a-w (or u-w)
Just as a further observation, since you're using sudo to edit it, and root is not bound by filesystem permissions, there's no need to make the chmod changes in order to edit the file. Your editor might complain a touch, or ask you to forcibly overwrite the file (i.e. w! or x! with Vi-style editors), but that's about the only thing avoided with the chmod commands.
This post was brought to you by the letters a and n, and the numbers 4 and 1.
Aaron S. Joyner
--
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
