View Full Version : [ubuntu] how to configure ubuntu to prompt for a passeord after the screen is locked

October 27th, 2010, 06:43 AM

i need to knw is the a way to configure the ubuntu desktop to prompt for a password when relogin after the screen is locked?

it asks for a username and password a at the login prompt if i relogin after logging out out but when i lock the scree by pressing ctrl +alt + l and try to relogin it will not ask for a password , it just let me log in automatically to the pc , i think this is a security issue cos anyone else can login to my pc without prowiding credentials ,

how to overcome this issue

pls help


October 27th, 2010, 06:48 AM
One option might be to click on System->Preferences->Screensaver and check both "Activate screensaver when computer is idle" and "Lock computer when screensaver is active"

October 27th, 2010, 07:54 AM

i tried that but it only works with regular user accounts , not with root account , is there a way to configure to prompt for password for root if trying to log in after the screen is locked??


November 8th, 2012, 10:51 AM
I am facing same issue. When I logged in with root, it won't prompt for password for screen lock.

Any help....???

November 8th, 2012, 12:14 PM
It's not necessary to use the root account; that's why it's disabled by default. Your system is much less secure this way. Even worse, an inexperienced user running the root account can do major damage to their filesystem by accident. Using a normal user account for yourself, "sudo" grants temporary root privileges in the terminal, and "gksudo" (also entered in the terminal) gives you root for apps with GUIs. Spare yourself the heartbreak and delete your root password. Linux is only the most secure OS for those who don't defeat the security by their own actions.