Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Dec 2001 01:03:47 +0100
From:      "Anthony Atkielski" <anthony@freebie.atkielski.com>
To:        "Gary W. Swearingen" <swear@blarg.net>
Cc:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Modifying only certain bits with chmod
Message-ID:  <005301c17eb2$a543ffa0$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> <v4u1v4hxcp.1v4@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
Seems like a lot of overhead, since I've already memorized the positions of
the permissions (seeing as there are only twelve of them).  Not only that
but a given set of permissions produces a unique 4-digit octal number that
is easy to retain (0644, 0755, etc.).

----- Original Message -----
From: "Gary W. Swearingen" <swear@blarg.net>
To: "Anthony Atkielski" <anthony@freebie.atkielski.com>
Cc: "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Sent: Thursday, December 06, 2001 22:06
Subject: Re: Modifying only certain bits with chmod


> > > 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?005301c17eb2$a543ffa0$0a00000a>