From owner-freebsd-questions Mon Nov 30 23:51:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA27598 for freebsd-questions-outgoing; Mon, 30 Nov 1998 23:51:39 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA27591 for ; Mon, 30 Nov 1998 23:51:33 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.054 #3) id 0zkdxs-00069R-00; Tue, 1 Dec 1998 00:46:52 +0000 Date: Tue, 1 Dec 1998 00:46:52 +0000 From: Ben Smithurst To: Chris Cc: freebsd-questions@FreeBSD.ORG Subject: Re: umask Message-ID: <19981201004652.A23208@scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: User-Agent: Mutt/0.94.17i (FreeBSD/3.0-CURRENT) 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 By this, I assume you mean that with umask of 022, normal files will be created with mode 0666 with 022 masked out, = 0644 ? > just not how to work out the octal numbers to get the desired result. chmod(1) explains it quite well. Basically, 0400 - owner read 0200 - owner write 0100 - owner exec 0040 \ 0020 - as above but for group 0010 / 0004 \ 0002 - as above but for world 0001 / -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message