1D1C - adduser

add a user to the system

adduser - add a user to the system

  1. Install the adduser package

$sudo apt install adduser

image.png

  1. To add a new user

$ adduser username

image.png

  1. To add a user with a different shell.

$ sudo adduser username --shell /bin/sh

image.png

  1. To add a new user with a different configuration file

$ sudo adduser username --conf custom_config.conf

  1. To add a user with different home directory.

$ sudo adduser username --home /home/code/

  1. To get the version of the adduser command

$ sudo adduser --version

image.png

  1. To display the help section of the adduser command

$ sudo adduser -h

image.png