Date: Tue, 3 Apr 2001 18:59:21 -0700 From: dannyman <dannyman@dannyland.org> To: Shawn Ramsey <shawn@megadeth.org> Cc: bsd-freak@mbox.com.au, freebsd-questions@FreeBSD.ORG Subject: Re: Adding Users with a shell script Message-ID: <20010403185921.K40739@dell.dannyland.org> In-Reply-To: <01eb01c0b8e0$e29b7d80$fe48a93f@shawn>; from shawn@megadeth.org on Thu, Mar 29, 2001 at 10:15:56PM -0800 References: <27396d277a9b.277a9b27396d@mbox.com.au> <01eb01c0b8e0$e29b7d80$fe48a93f@shawn>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 29, 2001 at 10:15:56PM -0800, Shawn Ramsey wrote: [...] > Have you looked at "pw" ? It is completly non-interactive, and pretty much > anything parameter can be passed to it. echo secret | pw useradd foo -s /sbin/noshell -h /home/foo -m -h 0 That last argument, -h 0, reads password in from stdin. Assuming your shell implements echo internally, then the password need never appear in the system process table. -danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010403185921.K40739>