LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


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

Rep: Reputation: 0
xlock/xscreenserver


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, 07:24 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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.
 
  


Reply



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 05:58 PM
xlock insecure... Synesthesia Linux - General 5 02-05-2006 12:36 AM
Automate Xlock? dauphinfay Linux - Software 2 08-14-2005 03:05 AM
Xlock / Xlock more with enterprise authentication yasir15 Linux - Software 0 04-20-2004 11:47 AM
xlock in kde rile0161 Linux - General 0 06-06-2001 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:46 PM.

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