LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2008, 05:44 AM   #1
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 265
Blog Entries: 2

Rep: Reputation: 34
Have an active display (desktop?) without screensaver with the keyboard locked out


I want to have my computer display a running program but have the keyboard and mouse password protected. Is this possible?

I looked at the "running "fake" display with keyboard input" thread, but that is not what I want. I want to have something like top running on the monitor, with the keyboard and mouse disabled, and the screen saver turned off.

-JJ
 
Old 09-16-2008, 01:52 PM   #2
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Rep: Reputation: 30
I think xtrlock is exactly what you're looking for. It's in the Debian repositories, not sure about other distros.

It changes the mouse cursor to a padlock (displays when you move the mouse) and doesn't obstruct the screen in any way. You type the current user's password and it unlocks. It doesn't accept any other keyboard input, it just unlocks when the password is typed.
 
Old 09-17-2008, 06:12 AM   #3
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 265

Original Poster
Blog Entries: 2

Rep: Reputation: 34
xtrlock is excatly what I am looking for. I was able to get it compiled and installed without any errors. However, when I try to start it gives me a
"password entry has no pwd" error.

I looked through the source code, not that I am a guru in such things, but from what I can tell it is getting the password based on the uid ...which makes sense.... but I am not able to figure out what file, or where, it is looking in for the password.

Any suggestions?

-JJ
 
Old 09-17-2008, 06:49 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
pwd is the current working directory, maybe it is the user home dir in password entry point of view ?
Does /etc/passwd home directory look correct for the uid you use ?
 
Old 09-17-2008, 07:01 AM   #5
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 265

Original Poster
Blog Entries: 2

Rep: Reputation: 34
The code that generates the error is:
Code:
  if (strlen(pw->pw_passwd) < 13) {
    fputs("password entry has no pwd\n",stderr); exit(1);
... I think in this case it is telling me it can't find the password. Since this is a debian based program... I wonder where it is looking for the password information?

-JJ
 
Old 09-17-2008, 07:08 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You may find the answer by searching how pw is declared in xtrlock source code file

[edit]
the struct of pw_passwd member is defined in /usr/include/pwd.h, this include file is used for passwords stored in /etc/passwd but in Slackware, passwords are in /etc/shadow!

So you need to rewrite the program to include shadow support if it does not support it
Basically you have to include /usr/include/shadow.h; define a pointer to the spwd structure and use getspnam() instead of getpwnam()

Last edited by keefaz; 09-17-2008 at 07:26 AM.
 
Old 09-17-2008, 08:05 PM   #7
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 265

Original Poster
Blog Entries: 2

Rep: Reputation: 34
I tried to compile it with xmkmf -DSHADOW_PWD. Still get the same error.

The readme file also says it dos not support shadow passwords.... I may have to go to plan B.

-JJ
 
  


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
XScreensaver messages on-screen when screensaver is active. Jeebizz Slackware 6 08-10-2008 08:22 AM
When session locked by kde screensaver, password not recognised vdemuth Slackware 7 12-12-2007 11:45 AM
Keyboard locked baking-a-77 Linux - Software 2 10-24-2007 07:33 AM
Making screensaver run when screen is locked akurtis Fedora 2 06-04-2005 09:15 PM
SuSE 9.1 'Switch User' when screensaver is locked Cichlasoma Linux - Distributions 1 07-20-2004 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:42 AM.

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