From owner-freebsd-questions Mon Dec 3 6:44:26 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 22E2737B405 for ; Mon, 3 Dec 2001 06:44:21 -0800 (PST) Received: from contactdish (win.atkielski.com [10.0.0.10]) by freebie.atkielski.com (8.11.3/8.11.3) with SMTP id fB3EiIx78567 for ; Mon, 3 Dec 2001 15:44:19 +0100 (CET) (envelope-from anthony@freebie.atkielski.com) Message-ID: <007a01c17c08$fd7f1030$0a00000a@atkielski.com> From: "Anthony Atkielski" To: "FreeBSD Questions" Subject: Modifying only certain bits with chmod Date: Mon, 3 Dec 2001 15:44:18 +0100 Organization: Anthony's Home Page (development site) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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 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? 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). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message