To create a user, run

-m = create home directory.
-s = specify location of shell.

To create a user with custom home directory, use

Create User with Specific User id

Create the user “serverok” with uid 4223, run

Related commands

Create, delete, and modify local user accounts

Create, delete and modify local groups and group memberships

To add a user to sudo/wheel group, see usermod

Add a Comment

Your email address will not be published. Required fields are marked *