There are so many variants to adduser
or useradd
-- which is correct?
On CentOS release 5.11 (Final)
I'm using adduser --create-home baz
but somewhat prefer the way Ubuntu asks extraneous questions about contact information. On Ubuntu, just adduser desired_user_name sudo
which is easier to remember -- at least for me.
Digital Ocean says to use adduser
and usermod
:
Use the usermod command to add the user to the wheel group.
usermod -aG wheel username
By default, on CentOS, members of the wheel group have sudo privileges.
Just handled differently?
(This is on Elastix 2.5 (asterisk) running on CentOS.)