LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-13-2010, 08:06 AM   #1
rd42
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Rep: Reputation: 0
Switch User at screen lock


In our cluster of RedHat4 & 5 machines, if someone locks the computer and walks away no body can use it. Is there a feature in RedHat5, Gnome, KDE etc that would allow for the option of switching users at the lock screen, so more than one person can be logged in?

Thanks, rd42
 
Old 05-14-2010, 04:00 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
Isn't the point of locking a machine to prevent others from accessing it?

If you have a box that needs to be accessed by multiple users; perhaps people you rather logout of the machine once done; instead of locking it?
 
Old 05-14-2010, 06:56 AM   #3
rd42
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Isn't the point of locking a machine to prevent others from accessing it?
They don't have root so if it functions like XP their activities are locked while the new user starts a entirely new session.

The users lock the PCs because they are running simulations that take some time to complete. So if all 20 or pcs are running day long simulations the room can't be used for new runs until one finishes.

Last edited by rd42; 05-14-2010 at 07:16 AM.
 
Old 05-17-2010, 02:37 AM   #4
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
I've done a fair amount of searching for a solution to your problem; I've found that Fedora supports enabling "Switch User" on the lock screen; but there doesn't seem to be a similar way to do it in RHEL.

If any of the other member's have a solution they can perhaps help you.

As an aside can your students simulations be started via the command line?

If so, you could let them shell into a screen and kick off a simulation; and detach without killing that process - in that way other users can still login to the GUI.

Also; take into account that allowing those "simulations" to run in parallel with someone doing miscellaneous actions on the box; can result in the resources being exhausted; and thus simulation data being lost due to a crash etc.

Thanks,
Yas
 
Old 05-17-2010, 07:33 AM   #5
rd42
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
In another forum I found this solutions that fixed the problem for me:

Quote:
1. CTRL ALT F1-12
2. Goes to login prompt -> login
3. startx -- :1 7 most likely already in use but the gui you just dropped out of.

Configuration:r
That can be controlled by starting login prompts on
all console terminals, leaving ONLY the unused ones (1/2/3...) available for usenwith X. I believe the default number of console terminals is 12, so assuming that, I have:

F1 - available for X by default
F2-6 -login terminals
F7-12 available for X

To configure the login terminals cd into /etc/event.d. The files tty1-6 are the existing definitions, so 0,7,8,9,10,11 can be defined. If tty7-10 are created (just copy tty1, and change the references to tty1 to the tty7-10 being created)that will allow only two X servers to exist - one for tty0 (F1), and one for tty11 (F12)
 
Old 05-18-2010, 02:50 AM   #6
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
Please read https://www.linuxquestions.org/linux...Ask_a_Question

The above solution is not for the question you originally asked about enabling the "Switch User" button. The above switches between run levels and allows rc 3 login - which is a different question altogether.

Thanks,
Yas
 
0 members found this post helpful.
Old 05-18-2010, 07:28 AM   #7
rd42
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I did ask for a "feature" that resulted in the ability to switch user. The solution I posted addresses the title, "Switch User at screen lock". I posted it for any one else out there that may be looking for the same thing. If you are using Fedora, it has a switch user feature built-in.

I'm open to suggestions for a new title to the thread if you think it would be helpful.
 
Old 05-19-2010, 02:18 AM   #8
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
Hi

Don't get me wrong - its a good thing that you posted your solution.

But the thing is, your solution is not for "Switching" users. When you "Switch" users the implication is that the box is under the control of a different user; and only that user ala Windows.

But in Linux terms; what your solution does is initialize a different Red Hat run level; and allows a shell login to the box. This could have been achieved without even being in front of the machine itself - that is you could have used a shell client on any machine that is allowed to connect to the RHEL machine in question; and login to the box.

But anyway - I'm glad you found a solution

Cheers
Yas
 
1 members found this post helpful.
Old 05-19-2010, 07:16 AM   #9
rd42
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the clarification. It actually gives me another question, terminals. I know MS has terminal servers and you have thin clients connecting to the terminal server. I would imagine Linux can more than do the same thing. Now I guess I'm on the search for a thin client.
 
Old 05-19-2010, 09:31 AM   #10
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
Not sure I fully understand....perhaps give me a use case to contextualize?
 
Old 05-19-2010, 09:35 AM   #11
rd42
LQ Newbie
 
Registered: Mar 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I'm not sure what the correct terminology is. I was thinking of a few "dummy" terminals or cheap boxes that connect to a more robust machine. The dummy terminals would just be strong enough to connect over the network and pipe back the desktop. Basically a little box, keyboard and mouse.
 
Old 05-19-2010, 10:23 AM   #12
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 91
These "dummy" boxes - are they meant to login to the RHEL command line and execute miscellaneous commands within a shell environment?

If so its as simple as installing a shell client (Putty is a good example) on each box and then giving your "dummy" users access to the "robust" server

You can also investigate VNC if a GUI login is what you want to offer to users on the "dummy" machines.

Hope this helps
 
1 members found this post helpful.
  


Reply

Tags
switch, user


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Another user login after lock screen devrajdp Linux - Enterprise 4 12-04-2008 01:09 AM
Switch User yields totally blank screen wildblueyonder Fedora 4 02-24-2007 11:43 AM
Switch user makes screen go black glenn69 Linux - Newbie 1 02-23-2007 04:06 PM
lock session / switch user wooot Suse/Novell 4 06-13-2005 01:54 PM
lock the screen as a root user? zstingx Linux - General 3 10-28-2003 03:10 AM


All times are GMT -5. The time now is 08:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration