0

When I got Linux put onto my personal laptop, I wasn't asked to create a password. Now, whenever my screen goes black, I've got to power it down and restart it in order to get back to the screen I was originally on. How can I create a password so I don't have to do that any longer?

1 Answers1

0

Open a terminal window and enter the following command:

whoami

This will return your user name.

Assuming you have root privileges, enter the following command on the terminal:

sudo passwd your_user_name

where your_user_name is your real user name returned by the whoami command. Enter a new password (two times for verification).

Use that password whenever the system prompts you.

Note: The above may not work if sudo prompts for your current password which you do not know.

FedKad
  • 13,420