From owner-freebsd-security Sat Feb 19 9:31:13 2000 Delivered-To: freebsd-security@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 013C137BC8D for ; Sat, 19 Feb 2000 09:31:09 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.13 #1) id 12MDib-000NYx-00; Sat, 19 Feb 2000 19:30:57 +0200 From: Sheldon Hearn To: Igor Vinokurov Cc: freebsd-security@FreeBSD.ORG Subject: Re: pw && umask In-reply-to: Your message of "Sat, 19 Feb 2000 20:01:42 +0300." <20000219200142.A605@shogun.rtsnet.ru> Date: Sat, 19 Feb 2000 19:30:57 +0200 Message-ID: <90578.950981457@axl.noc.iafrica.com> Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 19 Feb 2000 20:01:42 +0300, Igor Vinokurov wrote: > We use pw for automatic registration of new users in the system. > For security reasons we use 072 as umask for all users. Unfortunately, > pw creates a user home directory with the umask which was for the one > who has started pw. > > How to solve this problem? How about setting the umask(2) before running pw(8) by using the umask(1) builtin command of the shell? Both the csh(1) and sh(1) shells supplied with FreeBSD provide a umask(1) builtin command. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message