From owner-freebsd-questions Mon Jul 17 19:36:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp6.mindspring.com (smtp6.mindspring.com [207.69.200.110]) by hub.freebsd.org (Postfix) with ESMTP id 5E47737B8AC for ; Mon, 17 Jul 2000 19:36:21 -0700 (PDT) (envelope-from stuyman@confusion.net) Received: from confusion.net (user-2iveb6v.dialup.mindspring.com [165.247.44.223]) by smtp6.mindspring.com (8.9.3/8.8.5) with ESMTP id WAA28652; Mon, 17 Jul 2000 22:36:12 -0400 (EDT) Message-ID: <3973C25E.DA9B0F7D@confusion.net> Date: Mon, 17 Jul 2000 22:35:10 -0400 From: Laurence Berland Organization: B.R.A.T.T. X-Mailer: Mozilla 4.5 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: "DINKEY,GENE (HP-Loveland,ex1)" Cc: "'mhjoshi@att.net'" , questions@FreeBSD.ORG Subject: Re: Unix questions References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "DINKEY,GENE (HP-Loveland,ex1)" wrote: >[snip > > >5. If unmask is 022, the the following commands are > >executed. > >mkdir cat > >cat refer.txt > newpermiss > >what permissions will cat and newpremiss will have? > > The files will have mode 755 on creation. > > full access --> 777 > minus umask --> 022 > --------------------- > permision --> 755 > > Someone please correct me if I'm wrong but this is it to the best of my > understanding Part of this is, or at least last I checked was, wrong. The permissions are obtained by taking the permissions the creating program is trying to use, filtered through the umask. Hence, while a directory will come out 755 a redirection of output to a file should come out 644. -- Laurence Berland <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Windows 98: n. useless extension to a minor patch release for 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1 bit of competition. http://stuy.debate.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message