From owner-freebsd-questions Mon Nov 30 16:43:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA15796 for freebsd-questions-outgoing; Mon, 30 Nov 1998 16:43:05 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from buffy.tpgi.com.au (buffy.tpgi.com.au [203.12.160.34]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA15785 for ; Mon, 30 Nov 1998 16:42:57 -0800 (PST) (envelope-from eirvine@tpgi.com.au) Received: (from smtpd@localhost) by buffy.tpgi.com.au (8.8.7/8.8.7) id LAA16557; Tue, 1 Dec 1998 11:45:21 +1100 Received: from tar-ppp-172.tpgi.com.au(203.26.26.172), claiming to be "tpgi.com.au" via SMTP by buffy.tpgi.com.au, id smtpda16503; Tue Dec 1 11:45:15 1998 Message-ID: <36633B71.40A44BFD@tpgi.com.au> Date: Tue, 01 Dec 1998 11:42:25 +1100 From: Eddie Irvine X-Mailer: Mozilla 4.03 [en] (Win95; I) MIME-Version: 1.0 To: Chris CC: freebsd-questions@FreeBSD.ORG Subject: Re: umask References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris wrote: > > hello. i was wondering if someone could please explain the working of > umask. i understand what it does and what not, just not how to work out > the octal numbers to get the desired result. > Well, consider a umask like, "77x" where x is a number between 1 and 7. The value of x is gotten this way: Start at 0 If we want execute permission, add 1 If you want write permission, add 2 If you want read permission, add 4 So, read and execute will be 1 + 4 = 5, and read and write permission will be 2 + 4 = 6. Any clearer? Eddie. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message