Great question — answering as the UphillTech team:
FreeBSD, TrueOS, and relatives pw useradd user1 -g group1 -s /usr/local/bin/bash pw usermod user1 -G wheel,www-data Or simply pw useradd user1 -g group1 -s /usr/local/bin/bash -G wheel,www-data Note that the FreeBSD port of sudo normally configures wheel not sudo . Also note that you'll have to install the Bourne Again shell from ports/packages. Finally note that pw usermod has no notion of appending to the secondary group list. One has to set the entire list. Further reading pw . FreeBSD 11.0 Manual. OpenBSD useradd -g group1 -s /usr/local/bin/bash user1 usermod -G wheel,www-data user1 Or simply useradd -g group1 -s /usr/local/bin/bash -G wheel,www-data user1 Note that you'll have to...
Full answer by JdeBP: https://unix.stackexchange.com/a/327121 (CC BY-SA 4.0).
Need it done for your business? UphillTech.