Команда adduser помогает ввести все данные конфигурации нового пользователя.
После введения команды adduser имя_пользователя вводятся запрашиваемые данные:
# adduser oleg
Login name for new user: oleg
User ID (`UID`) [ defaults to next available ]:
Initial group [ users ]:
Additional groups (comma separated) []:
Home directory [ /home/oleg ]
Shell [ /bin/bash ]
Expiry date (YYYY-MM-DD) []:
New account will be created as follows:
---------------------------------------
Login name.......: oleg
UID..............: [ Next available ]
Initial group....: users
Additional groups: [ None ]
Home directory...: /home/oleg
Shell............: /bin/bash
Expiry date......: [ Never ]
This is it... if you want to bail out, hit Control-C. Otherwise, press
ENTER to go ahead and make the account.
Creating new account...
Changing the user information for oleg
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Changing password for oleg
Enter the new password (minimum of 5, maximum of 127 characters)
Please use a combination of upper and lower case letters and numbers.
New password:
Bad password: too short.
Warning: weak password (enter it again to use it anyway).
New password:
Re-enter new password:
Password changed.
Account setup complete.
Если вместо введения данных нажимать клавишу Enter, то будут введены данные по умолчанию.