To add a new user to a Linux operating system you must be signed in as a privileged user.
One way to add a new user on an Ubuntu based Linux operating system is type type "sudo adduser" and then the new user name. To add the user testadduser you would type "sudo adduser testadduser" When using the adduser command, you will be prompted to add in the Full Name, Room Number, Work Phone, Home Phone, and Other. You can add this information in or just press enter to leave it blank. When the new user is added this way, a home directory is also added fr that new user.
When adding in a user with "sudo useradd" no home directory is created and a password is not created for the new user.
To add a new user with the useradd command with a home directory we would add the "-m" option (the "m" is for hoMe, "h" is reserved for help) so the command I used was "sudo useradd -m " followed by the user I wanted to add making it "sudo useradd -m testuseraddm"
New users are added to the /etc/passwd file. The passwd file has information about the user, but not the password – the encrypted password is stored in the /etc/shadow file discussed in Adding Users pt2
See the complete LCL playlist at: • Linux Command Line (01) What Is The Linux...
Website link:
https://thefrugalcomputerguy.com/linu...
On this page of the site you can watch the video online Linux Command Line (14) Adding Users pt1 with a duration of hours minute second in good quality, which was uploaded by the user MichaelsTechTutorials 18 April 2020, share the link with friends and acquaintances, this video has already been watched 4,641 times on youtube and it was liked by 92 viewers. Enjoy your viewing!