So you come here to find out how to create a new users on lubuntu? well you come to the right place, because in this article i will show you how to create new users on lubuntu.
We are going to do this through command line (console/terminal), on lubuntu we have spesific command for managing users, such as create new users, delete users, etc.
Creating new users
to create new user, you can use the adduser command from the console/terminal, here's an example:
That command will create a new user named jenny, you should be able to see jenny as an option on the login screen of lubuntu.
Set password for new users
After creating new user named jenny, next if you want to set new password for jenny, you can use the passwd command, like this:
You will be prompted to enter new password for jenny and retype the password again so you don't type wrong password :
to create new user, you can use the adduser command from the console/terminal, here's an example:
sudo adduser jenny
That command will create a new user named jenny, you should be able to see jenny as an option on the login screen of lubuntu.
kernelpanic@lubuntulaptop:~$ sudo adduser jenny
Adding user `jenny' ...
Adding new group `jenny' (1001) ...
Adding new user `jenny' (1001) with group `jenny' ...
Creating home directory `/home/jenny' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for jenny
Enter the new value, or press ENTER for the default
Full Name []: jenny cute
Room Number []: 7
Work Phone []: 696969
Home Phone []: 555666
Other []: 000000
Is the information correct? [Y/n] Y
Besides adduser command, there is also useradd command which works exactly the same, they both for creating new users under command line prompt/terminal/console.
The only different is that adduser is perhaps easier because it's automatically add group, home dir, and password for the new user.
So you might want to use adduser for easier setup, but if you just want to create new user than useradd is the one to use (with no parameter). Here's an example:
The useradd command can be run with parameters, example useradd -G [groupname] [username], it's more complicated so you better use adduser command instead.The only different is that adduser is perhaps easier because it's automatically add group, home dir, and password for the new user.
So you might want to use adduser for easier setup, but if you just want to create new user than useradd is the one to use (with no parameter). Here's an example:
sudo useradd jenny
Set password for new users
After creating new user named jenny, next if you want to set new password for jenny, you can use the passwd command, like this:
sudo passwd jenny
You will be prompted to enter new password for jenny and retype the password again so you don't type wrong password :
Now you can tell jenny her new password, if jenny wants to change her own password, she can do that by running the passwd command while she's login to the system.
kernelpanic@lubuntulaptop:~$ sudo passwd jenny
[sudo] password for kernelpanic:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
jenny@lubuntulaptop:~$ passwd
Changing password for jenny.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Well that's it folks, i hope this tutorial could help you setup new user on lubuntu, see you in the next tutorial.
~ cheers ~
Thank you.
ReplyDeleteyou're welcome :)
Delete