From owner-freebsd-questions Thu Mar 29 21:10:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.mbox.com.au (smtp2.mbox.com.au [203.103.80.178]) by hub.freebsd.org (Postfix) with ESMTP id D288737B71A for ; Thu, 29 Mar 2001 21:10:53 -0800 (PST) (envelope-from bsd-freak@mbox.com.au) Received: from mbox.com.au (webmail.i7mail.com.au [192.168.20.4]) by smtp2.mbox.com.au (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0GAZ0015EVLR3K@smtp2.mbox.com.au> for freebsd-questions@freebsd.org; Fri, 30 Mar 2001 13:08:15 +0800 (WST) Date: Fri, 30 Mar 2001 15:08:16 +1000 From: bsd-freak@mbox.com.au Subject: Adding Users with a shell script To: freebsd-questions@freebsd.org Message-id: <27396d277a9b.277a9b27396d@mbox.com.au> MIME-version: 1.0 X-Mailer: Netscape Webmail Content-type: text/plain; charset=us-ascii Content-language: en Content-disposition: inline Content-transfer-encoding: 7BIT X-Accept-Language: en Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hiya all, I need to be able to add users to be FreeBSD box via a shell script. On Linux this was a simple affair as I could have something like: adduser -G pop3 -s /bin/false -p secret joe This would add the user joe to the system with the next available UID, no login shell, add him to the pop3 group and set his password to "secret". How do I do this on FreeBSD as the "adduser" utility on FreeBSD insists on being completly interactive even in "silent" mode (-s) and even when I pass all my options to it via the command line switches. Thanks heaps all.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message