Adding Users to FreeBSD

The command to add new users to FreeBSD is adduser. The first time you run it, it will ask you a lot of questions. Don't worry. You won't have to answer all of these questions every time you run adduser. Listing 5.1 walks you through a typical adduser session when running it for the first time.

Listing 5.1. A Sample adduser Session
 #adduser Use option ''silent'' if you don't want to see all warnings and questions Check /etc/shells Check /etc/master.passwd Check /etc/group Enter your default shell: csh date ksh no sh tcsh [ksh]: Your default shell is: ksh -> /usr/local/bin/ksh Enter your default HOME partition: [/home]: Copy dotfiles from: /usr/share/skel no [/usr/share/skel]: Send message from file: /etc/adduser.messsage ...

Get Sams Teach Yourself FreeBSD® in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.