[TriLUG] fedora core 3 nfs question

Rick DeNatale rick.denatale at gmail.com
Thu Feb 3 15:55:15 EST 2005


On Wed, 02 Feb 2005 06:57:03 -0500, Aaron S. Joyner <aaron at joyner.ws> wrote:
> 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)

Yep, that ring finger of mine sometimes has a mind of it's own,
sometimes it goes up when I'm thinking down.

> 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.

Yep again. I usually use emacs and it wasn't obvious to me, it
disabled save and only presented save as, but you can indeed save over
the old one if you have root priviledges.



More information about the TriLUG mailing list