From owner-freebsd-questions@FreeBSD.ORG Thu Aug 14 11:25:22 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EE6C37B421 for ; Thu, 14 Aug 2003 11:25:22 -0700 (PDT) Received: from mx1.lphp.org (APastourelles-107-1-21-249.w81-51.abo.wanadoo.fr [81.51.116.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id C148F43FEA for ; Thu, 14 Aug 2003 11:25:19 -0700 (PDT) (envelope-from ajacoutot@lphp.org) Received: from sta01 (sta01.lphp.org.local [192.168.0.4]) by mx1.lphp.org (8.12.8p1/8.12.8) with ESMTP id h7EIPHCY076688; Thu, 14 Aug 2003 20:25:17 +0200 (CEST) (envelope-from ajacoutot@lphp.org) From: Antoine Jacoutot To: Joshua Oreman Date: Thu, 14 Aug 2003 20:25:15 +0200 User-Agent: KMail/1.5.3 References: <200308141542.40587.ajacoutot@lphp.org> <20030814181947.GC8728@webserver> In-Reply-To: <20030814181947.GC8728@webserver> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200308142025.18512.ajacoutot@lphp.org> cc: questions@freebsd.org Subject: Re: umask X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2003 18:25:22 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 14 August 2003 20:19, Joshua Oreman wrote: > 066 will be *more* secure than 022. I know that :) > This is because a umask is deducted from the default permission bits of 6= 66 > (or 777 for executables) on new files. So a umask of 022 will cause new > files to have a mode of 600 or 711. Yes I know, I was just wondering why the default behaviour was not very=20 secure. > * 077 (600 or 700 -- most secure) So, if I set umask to 077, this is OK, right ? Is there ANY cons ? Thanks a lot for your answer Joshua. Antoine =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/O9QOY3Hnhkr+5cQRAnI6AJ4r4/ChIy/cDAqv2ZHrBCnDu2HotACeK5jx CBnqmfxoTPvdT4rZIUs8s0U=3D =3Dsw1f =2D----END PGP SIGNATURE-----