From owner-freebsd-questions Thu Dec 6 13: 7:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 4A3F237B685 for ; Thu, 6 Dec 2001 13:07:01 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 4B2B9BE3E; Thu, 6 Dec 2001 13:07:01 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id NAA10684; Thu, 6 Dec 2001 13:07:01 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id fB6L6l118238; Thu, 6 Dec 2001 13:06:47 -0800 (PST) (envelope-from swear@blarg.net) To: "Anthony Atkielski" Cc: "FreeBSD Questions" Subject: Re: Modifying only certain bits with chmod References: <009101c17c12$649fe2e0$0a00000a@atkielski.com> <20011206122233.GB1111@raggedclown.net> <00bb01c17e52$96093b50$0a00000a@atkielski.com> <20011206130504.GA9605@raggedclown.net> <00d001c17e5d$9a93a470$0a00000a@atkielski.com> From: swear@blarg.net (Gary W. Swearingen) Date: 06 Dec 2001 13:06:46 -0800 In-Reply-To: <00d001c17e5d$9a93a470$0a00000a@atkielski.com> Message-ID: Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 > > 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