From owner-freebsd-questions Tue Dec 4 1:44:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hawk.prod.itd.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 5DA5937B419; Tue, 4 Dec 2001 01:44:15 -0800 (PST) Received: from dialup-209.245.134.132.dial1.sanjose1.level3.net ([209.245.134.132] helo=blossom.cjclark.org) by hawk.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16BC7a-0000f1-00; Tue, 04 Dec 2001 01:44:14 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id fB49i9M38602; Tue, 4 Dec 2001 01:44:09 -0800 (PST) (envelope-from cjc) Date: Tue, 4 Dec 2001 01:44:08 -0800 From: "Crist J . Clark" To: Anthony Atkielski Cc: George Reid , FreeBSD Questions Subject: Re: Modifying only certain bits with chmod Message-ID: <20011204014408.D37981@blossom.cjclark.org> References: <007a01c17c08$fd7f1030$0a00000a@atkielski.com> <20011203144722.A19484@FreeBSD.org> <009101c17c12$649fe2e0$0a00000a@atkielski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <009101c17c12$649fe2e0$0a00000a@atkielski.com>; from anthony@freebie.atkielski.com on Mon, Dec 03, 2001 at 04:50:24PM +0100 X-URL: http://people.freebsd.org/~cjc/ 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 On Mon, Dec 03, 2001 at 04:50:24PM +0100, Anthony Atkielski wrote: > I ended up modifying the command, which was easier (for me) than memorizing the > symbolic syntax. Now I can type > > chmod 600:500 file > > to turn on the the r bit and turn off the x bit for the owner while leaving > everything else alone. I find it easier to relate the bits in octal to the > positions of the permission as output from ls than to try to remember letters > and parameters. > > It's great to have source! > > So ... what's the safest way to make this my system-wide command without > interfering with the standard chmod source and stuff? I guess I could just copy > the modified binary over to bin, no? What do most people do when they develop > their own local custom versions of a command? Switching CVS instead of CVSup will allow you to keep changes in your source repository that are kept when you update code. But this might be a heavyweight solution for just one program. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message