Skip site navigation (1)Skip section navigation (2)
Date:      06 Dec 2001 13:06:46 -0800
From:      swear@blarg.net (Gary W. Swearingen)
To:        "Anthony Atkielski" <anthony@freebie.atkielski.com>
Cc:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Modifying only certain bits with chmod
Message-ID:  <v4u1v4hxcp.1v4@localhost.localdomain>
In-Reply-To: <00d001c17e5d$9a93a470$0a00000a@atkielski.com>
References:  <009101c17c12$649fe2e0$0a00000a@atkielski.com> <Pine.GSO.4.31.0112061049360.6883-100000@mail.ilrt.bris.ac.uk> <20011206122233.GB1111@raggedclown.net> <00bb01c17e52$96093b50$0a00000a@atkielski.com> <20011206130504.GA9605@raggedclown.net> <00d001c17e5d$9a93a470$0a00000a@atkielski.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > There are better ways of doing this than changing
> > system program source code.
> 
> Such as?

Just remember that infamous Yugo car (as in "Your OS is the Yugo of
OSes") except use only the last three lower-case letters which are
pronounced the same, ugo (User, Group, Others):

And you should already know r,w,x (Read, Write, eXecute).

So you either add (+), subtract (-), or set (=) attributes/bits as

    chmod go+wx        file
    chmod u+r,g-wx,o=  file

Later, you can work on trying to remember that "a" stands for
"All" of u, g, and o, so you can do

    chmod a+x script

Finally, you can learn the other attribute codes which are arguably
easier to remember than the numerical method and in some cases not
even supported by the numerical method. (Like, "u" which means "the
same permissions as the "user" permissions.)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v4u1v4hxcp.1v4>