Date: Sat, 19 Feb 2000 19:30:57 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: Igor Vinokurov <igor@rtsnet.ru> Cc: freebsd-security@FreeBSD.ORG Subject: Re: pw && umask Message-ID: <90578.950981457@axl.noc.iafrica.com> In-Reply-To: Your message of "Sat, 19 Feb 2000 20:01:42 %2B0300." <20000219200142.A605@shogun.rtsnet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?90578.950981457>