So I created a new user and password for other family members & friend to work,I normally forget the password and try to create a new password, everytime when they ask for the password.
I love people to work in ubuntu desktop but I regred to leek my password.
To avoid this situvation I found a solution to login my ubuntu-desktop without a password for my family members and friends.
Now how to do that?
Create a user, say “friends”.
open a terminal
sudo adduser friends
[sudo] password for verman:(enter the admin password)
Adding user `friends’ …
Adding new group `friends’ (1005) …
Adding new user `friends’ (1005) with group `friends’ …
Creating home directory `/home/friends’ …
Copying files from `/etc/skel’ …
Enter new UNIX password:******
Retype new UNIX password: ******
passwd: password updated successfully
Changing the user information for friends
Enter the new value, or press ENTER for the default
Full Name :
Room Number :
Work Phone :
Home Phone :
Is the information correct? [y/N] y
Now new user “friends ” has been created
Now remove the password for the user “friends”
verman@verman-desktop:~$ sudo passwd -d friends
Now follow the 2 steps to Authorize login in gdm & pam
1. Authorize login with no passwords in gdm
verman@verman-desktop:~$ sudo sed -i ‘s/#PasswordRequired=false/PasswordRequired=false/’ /etc/gdm/gdm.conf
2. Authorize login with no passwords in pam
verman@verman-desktop:~$ sudo sed -i ‘s/nullok_secure/nullok/’ /etc/pam.d/common-auth
You can now log in with your “friends” user with no password.
To Know more on ‘sed’, Continue reading Command : $sed.