We may need to create new users for various reasons. Follow below steps to create a new user called “newuser” in Linux in just a few seconds.
Launch the terminal:
Type “sudo adduser newuser” and press enter (Enter your password if prompted for it)
┌──(test㉿kali)-[~] └─$ sudo adduser newuser1 Adding user `newuser1' ... Adding new group `newuser1' (1002) ... Adding new user `newuser1' (1002) with group `newuser1' ... Creating home directory `/home/newuser1' ... Copying files from `/etc/skel' ...
You are prompted to set a password for the newuser1 and provide additional properties.
Note: A password must be set for the user.
──(test㉿kali)-[~] └─$ sudo adduser newuser1 Adding user `newuser1' ... Adding new group `newuser1' (1003) ... Adding new user `newuser1' (1003) with group `newuser1' ... Creating home directory `/home/newuser1' ... Copying files from `/etc/skel' ... New password: Retype new password: passwd: password updated successfully Changing the user information for newuser1 Enter the new value, or press ENTER for the default Full Name []: New User1 Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n]
Leave A Comment