Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Using Ubuntu 12.04.

I'd like to know if it is possible to set a different password for Ubuntu screensaver or not?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

It is possible. There are two ways of doing it:

Option 1: xlock - this program can lock your screen and has an option where you can specify the unlock password.

create encrpyted password:

openssl passwd -crypt

lock with custom password:

xlock -cpasswd crypted-password

The ubuntu package for xlock that I tried didn't have the -cpasswd option, so you might have to compile it from source to use that option.

Option 2: xscreensaver is an alternative to gnome-screensaver. There is this howto that show you how to set it up in Ubuntu. Once setup you can create a dummy user on your machine and set whatever password you want for the screensaver through that user. Then you run the screen saver as that user, that way when the screensaver comes up it will ask you to enter that users password. I tried and tested this method just now it works.

allow dummyuser to access your screen

xhost +

run screensaver as dummyuser

sudo -u dummyuser xscreensaver -no-splash
share|improve this answer
    
that's awesome man . its saying that its could be done. thank you . I'll try and let you know . –  Raja Oct 5 '12 at 0:34
2  
With Linux never take no for an answer, it can always be customized! –  Marwan Alsabbagh Oct 5 '12 at 6:35
    
If you want to do this securely, and with the included screen locking support, you will have to patch it very heavily. While it is possible to use other methods, some of which are quite insecure, I would highly recommend against it. In particular, xhost + is not secure at all. –  dobey Oct 5 '12 at 12:59

You cannot have a different password for the screensaver unlock, from your log-in password, no.

share|improve this answer
    
As this answer explains, actually you can. –  Eliah Kagan Oct 4 '12 at 21:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.