Date: Fri, 30 Mar 2001 15:08:16 +1000 From: bsd-freak@mbox.com.au To: freebsd-questions@freebsd.org Subject: Adding Users with a shell script Message-ID: <27396d277a9b.277a9b27396d@mbox.com.au>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27396d277a9b.277a9b27396d>