Adduser example

adduser

User addition utility.

  • Create a new user with a default home directory and prompt the user to set a password:

adduser {{username}}

  • Create a new user without a home directory:

adduser --no-create-home {{username}}

  • Create a new user with a home directory at the specified path:

adduser --home {{path/to/home}} {{username}}

  • Create a new user with the specified shell set as the login shell:

adduser --shell {{path/to/shell}} {{username}}

  • Create a new user belonging to the specified group:

adduser --ingroup {{group}} {{username}}

@w.lohman add user example

Can I have useradd command?

Username: cmathieu

Sure. I enabled wmsudo access. Please login and type wmsudo. There you can perform useradd related commands.

My wmsudo command keeps aborting on line 21 for some reason

I fix it! I look at other thread and found out a way.

1 Like