Freebsd – How to add a user to a group in FreeBSD

freebsdusers

How can I add an existing user to a group in FreeBSD? The command usermod does not work.

Best Answer

pw is the command you are looking for. To add user klaatu to the group foo, do:

pw groupmod foo -m klaatu

Here is the FreeBSD handbook page on the subject. It's an easy and informative read: Users and Basic Account Management

Related Question