[TriLUG] fedora core 3 nfs question
Aaron S. Joyner
aaron at joyner.ws
Wed Feb 2 06:57:03 EST 2005
Rick DeNatale wrote:
>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
>
>
>
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:
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
More information about the TriLUG
mailing list