Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 09-22-2006, 09:43 PM   #1
LQ Newbie
Registered: May 2004
Distribution: Mandrake 10
Posts: 3

Rep: Reputation: 0

Hello all!

I'm trying to find a program that can lock X and can only be unlocked by several passwords defined by me...

I read on xlock and xscreenserver man pages anda I couldn't find an option to do it. Both programs just unlock by entering the user's password or root password.

Do you know how to do this with these programs or know any other ones that can make what i'm looking for?

Thanks a lot!
Old 09-23-2006, 08:24 PM   #2
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Firstly, unless you're tricky you won't be able to catch Ctrl-Alt-BkSpace which will kill X and leave any malicious users logged in as your user. You can get around this by maybe aliasing startx to 'startx; logout' but that's probably not the most ideal solution.

I've used xtrlock before, it's still only the users password that you need but I've found it better for my needs than xlock. Not sure how you'd go about writing something but it'd be a fun project. I've got a mega-hacky solution which may/may not work but it'd be fun to try if you're really that keen.

Chuck together a "client", shell would work but my choice would be Python or Perl. Use this to manage your passwords. Then run 'xtrlock; my-pass-manager', you'd need to enter your user password to get passed xtrlock then have your script validate the user, if they don't pass start xtrlock again. Maybe use dialog and a fullscreen terminal without borders to make it slightly harder to just drag it out of the road and get access.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xlock - Never authenticates first try kellinjar Linux - Software 3 07-08-2008 06:58 PM
xlock insecure... Synesthesia Linux - General 5 02-05-2006 01:36 AM
Automate Xlock? dauphinfay Linux - Software 2 08-14-2005 04:05 AM
Xlock / Xlock more with enterprise authentication yasir15 Linux - Software 0 04-20-2004 12:47 PM
xlock in kde rile0161 Linux - General 0 06-06-2001 06:33 PM

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration