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 06-26-2013, 11:17 PM   #1
jnbbender
LQ Newbie
 
Registered: Jun 2013
Posts: 7

Rep: Reputation: Disabled
Is it possible to do a dual user graphical login?


I'm using RedHat on a system which requires that access is granted ONLY after two people have been authenticated on the machine. Figuring out which Effective UID they get after the login is another logistical issue I'll have to deal with later.
Can one mingetty process be run as a subprocess of another? I don't know!
Any ideas would be great.
 
Old 06-27-2013, 07:49 AM   #2
dayid
Member
 
Registered: Apr 2012
Location: Austin, TX
Posts: 44

Rep: Reputation: Disabled
Quote:
Originally Posted by jnbbender View Post
I'm using RedHat on a system which requires that access is granted ONLY after two people have been authenticated on the machine. Figuring out which Effective UID they get after the login is another logistical issue I'll have to deal with later.
Can one mingetty process be run as a subprocess of another? I don't know!
Any ideas would be great.
You'll need to explain in further depth your setup (and ask a clearer question) to get any help.
  • In your post, what does "system" refer to? The hardware? A software/program/service?
  • When you say "after two people have authenticated"
    • Authenticated against what?
    • Authenticated since boot? (and possible logged out) or "...and are still logged in"
  • Presumably you're doing something with setuid if you're worried about the effective uid instead of just using the user's actual UID? Is this correct?
  • If so (above), how is it being used?
  • mingetty: try-it-and-see
 
Old 06-27-2013, 08:50 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
mingetty only works on unattached console terminals. Trying to run it on one that is busy just hangs.

I believe the reason it hangs is that it is attempting to establish a secure session to reset the terminal and start login.

Last edited by jpollard; 06-27-2013 at 08:51 AM.
 
Old 06-27-2013, 10:02 AM   #4
jnbbender
LQ Newbie
 
Registered: Jun 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Sorry, I'll try and be a little clearer. I haven't tried mingetty, it was just an uneducated guess at a solution. To start off I am not concerned with console logins.
My system is a RedHat 6.1 gnome GUI login screen on an pretty standard x86 desktop PC. I apologize I do not know which service runs the standard gnome GUI login screen presented to the user on run level 5.

Typically a person would login AT THE GUI, a gnome session would start and off you go. What I am wondering is - is it possible for one person to login at the gnome GUI (run level 5) AND THEN have the gnome login GUI present itself ONE MORE time so that another user must login before access granted.

Forget everything I said about UID, mingetty, etc.
 
Old 06-27-2013, 12:22 PM   #5
dayid
Member
 
Registered: Apr 2012
Location: Austin, TX
Posts: 44

Rep: Reputation: Disabled
What is the end goal you want to have?

Are you trying to create a system that uses "two man rule" to launch a particular service?
 
Old 06-27-2013, 12:33 PM   #6
jnbbender
LQ Newbie
 
Registered: Jun 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Yes
 
Old 06-27-2013, 01:13 PM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by jnbbender View Post
Sorry, I'll try and be a little clearer. I haven't tried mingetty, it was just an uneducated guess at a solution. To start off I am not concerned with console logins.
My system is a RedHat 6.1 gnome GUI login screen on an pretty standard x86 desktop PC. I apologize I do not know which service runs the standard gnome GUI login screen presented to the user on run level 5.

Typically a person would login AT THE GUI, a gnome session would start and off you go. What I am wondering is - is it possible for one person to login at the gnome GUI (run level 5) AND THEN have the gnome login GUI present itself ONE MORE time so that another user must login before access granted.

Forget everything I said about UID, mingetty, etc.
Yes. It is possible.

What you have to do though is setup a "desktop" environment that does nothing but request another login. Once that second "login" occurs then the real desktop can be linked.

To do it though will require a specific login window - and it will not be running as root - so it will be "logged in" as the first user. The second login COULD change UID... but I'm not so sure that access to a GUI would work (the X authorization keys won't match or be available, and if available, then the second login could be spoofed).

This might be implementable by modifying a screen lock utility. The screen lock would then have to start the real GUI rather than just exit.

What you are doing is equivalent to a "captive login" from the command line. The way that works is that the first login has a specific shell to run - and all that shell does is verify a second (different) password before doing an exec of a real shell.

Note the limitation: the "user1" login must always be first, the "user2" password must always be second.

There are weaknesses involved here - 1. root can always bypass it. 2. any bug in the second login could leave user1 with normal access. This can be setup to "fail safe" but it requires a good bit of care in its setup.

BTW, in current RH systems the GUI service is in /etc/X11/prefdm.

In Fedora it changes drastically, and is much less well documented.

Last edited by jpollard; 06-27-2013 at 01:15 PM.
 
Old 06-27-2013, 02:45 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I'd wonder how secure this notion is. Any time someone has physical access to a system this two man rule fails.

You'd be more secure going with some dual password encryption scheme or maybe a complete remote system that required a dual password and time limits.
 
Old 06-27-2013, 02:57 PM   #9
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by jefro View Post
I'd wonder how secure this notion is. Any time someone has physical access to a system this two man rule fails.
The only time the two man rule actually works is when the two keying stations are NOT the same. That is why all the missile launch systems required them to be turned on AT THE SAME TIME and the two stations were required to be more than two arms length apart.
Quote:
You'd be more secure going with some dual password encryption scheme or maybe a complete remote system that required a dual password and time limits.
That is all he was asking for. Is there a PAM module for that? It might be the easiest way to do it (wish I had thought of that for an earlier post).
 
Old 06-28-2013, 03:10 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Good point.

The only thing I have seen is dual usb encryption keys that needed to be attached. At one time they used parallel keys for this.
 
Old 07-02-2013, 02:30 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Wonder if any of the freeipa stuff would help?
 
  


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
Disable Root Login to the Graphical User Interface wmasry Linux - Newbie 2 04-15-2010 02:50 AM
Block root user for login in Graphical mode for security sandeeprhce5 Linux - Server 0 04-10-2009 09:02 AM
Broke my Graphical User Login! (oops!) griffwolf Linux - Newbie 3 05-05-2007 03:45 PM
I can not login to SuSE 10 as root user in graphical mode Voroojack SUSE / openSUSE 4 04-27-2006 09:58 PM
user cannot login to graphical-system womd Linux - Software 6 12-16-2005 05:27 AM

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

All times are GMT -5. The time now is 06:34 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