Adding and Removing Users

Now that we have covered permissions and ownership, we need to turn our attention to expanding the system’s user base to include more users and groups.

Use the adduser script to add users to the system. This program differs somewhat in workflow from the adduser and useradd scripts you might be accustomed to using on a Linux system, but it accomplishes the same thing. You must be root (or use sudo) in order to run adduser.

Setting Up adduser Defaults

Before using adduser to add any users, you should first run it with the -C option to create a configuration file that defines its default behavior, setting up the standard policies for the users you’ll be adding. You can specify users’ options (such as shells, member groups, ...

Get FreeBSD6 Unleashed 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.