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

Create User to Run System Service

-r option select gid/uid for running system service.

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

Leave a Reply

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