From owner-freebsd-questions Mon Dec 3 7: 1:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 4A8BF37B417 for ; Mon, 3 Dec 2001 07:01:22 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fB3F0hS15773; Mon, 3 Dec 2001 17:00:43 +0200 (EET) (envelope-from ru) Date: Mon, 3 Dec 2001 17:00:43 +0200 From: Ruslan Ermilov To: Anthony Atkielski Cc: FreeBSD Questions Subject: Re: Modifying only certain bits with chmod Message-ID: <20011203170043.T60143@sunbay.com> References: <007a01c17c08$fd7f1030$0a00000a@atkielski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <007a01c17c08$fd7f1030$0a00000a@atkielski.com> User-Agent: Mutt/1.3.23i 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 03:44:18PM +0100, Anthony Atkielski wrote: > Am I missing something, or is there no way to set or reset only certain > permission bits--while leaving the others unchanged--using chmod with the octal > permissions field? If chmod doesn't allow this, is there any other similar > command that does? > It does. > Essentially what I was thinking of was, say, clearing a write bit on the > permissions of a group of files without changing any of the other bits (which > may not be the same for each file). The symbolic form of the chmod command is > awkward (at least for me). > chmod g-w Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message