From owner-freebsd-questions Tue Apr 3 18:58:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dell.dannyland.org (dell.dannyland.org [64.81.36.13]) by hub.freebsd.org (Postfix) with ESMTP id CDBB837B724 for ; Tue, 3 Apr 2001 18:58:17 -0700 (PDT) (envelope-from dannyman@toldme.com) Received: by dell.dannyland.org (Postfix, from userid 1001) id 698AB5C3F; Tue, 3 Apr 2001 18:59:21 -0700 (PDT) Date: Tue, 3 Apr 2001 18:59:21 -0700 From: dannyman To: Shawn Ramsey 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> References: <27396d277a9b.277a9b27396d@mbox.com.au> <01eb01c0b8e0$e29b7d80$fe48a93f@shawn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <01eb01c0b8e0$e29b7d80$fe48a93f@shawn>; from shawn@megadeth.org on Thu, Mar 29, 2001 at 10:15:56PM -0800 X-Loop: djhoward@uiuc.edu X-URL: http://www.dannyland.org/~dannyman/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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