Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2001 17:00:43 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Anthony Atkielski <anthony@freebie.atkielski.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Modifying only certain bits with chmod
Message-ID:  <20011203170043.T60143@sunbay.com>
In-Reply-To: <007a01c17c08$fd7f1030$0a00000a@atkielski.com>
References:  <007a01c17c08$fd7f1030$0a00000a@atkielski.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <files>


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011203170043.T60143>