From owner-freebsd-questions Thu Dec 6 16: 4: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.atkielski.com (ASt-Lambert-101-2-1-14.abo.wanadoo.fr [193.251.59.14]) by hub.freebsd.org (Postfix) with ESMTP id B7BDC37B405 for ; Thu, 6 Dec 2001 16:03:57 -0800 (PST) Received: from contactdish (contactdish.atkielski.com [10.0.0.10]) by freebie.atkielski.com (8.11.3/8.11.3) with SMTP id fB703lx11498; Fri, 7 Dec 2001 01:03:47 +0100 (CET) (envelope-from anthony@freebie.atkielski.com) Message-ID: <005301c17eb2$a543ffa0$0a00000a@atkielski.com> From: "Anthony Atkielski" To: "Gary W. Swearingen" Cc: "FreeBSD Questions" References: <009101c17c12$649fe2e0$0a00000a@atkielski.com><20011206122233.GB1111@raggedclown.net><00bb01c17e52$96093b50$0a00000a@atkielski.com><20011206130504.GA9605@raggedclown.net><00d001c17e5d$9a93a470$0a00000a@atkielski.com> Subject: Re: Modifying only certain bits with chmod Date: Fri, 7 Dec 2001 01:03:47 +0100 Organization: Anthony's Home Page (development site) MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" To: "Anthony Atkielski" Cc: "FreeBSD Questions" 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