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 03-08-2019, 04:34 PM   #1
Waris
Member
 
Registered: May 2017
Distribution: Centos 6,7 and Windows
Posts: 40

Rep: Reputation: Disabled
"Log in as another user" missing centos 7


Machine: Centos 7.6
GNOME: Version 3.28.2


Scenario:

USER A: Needs a break from work, clicks lock button on the top right hand side from the drop down menu. His machine is now locked.

USER B: Wants to use machine but he cant because the session is locked by USER A, there is no "Log in as another user" as it normally should be.


QUESTION: Why is the "Log in as another user" tab missing at a locked screen? How can this ability be enabled/disabled?

COMMENTS: I can ssh into the system and restart gdm and it would cause USER A's session to be killed and a login screen will prompt for a new session. i know that. i also know switching users from a terminal BUT for clarification purposes what i really want is the ability to be able to "Log in as another user" from the login screen. I've scoured google for a solution but to no avail.
 
Old 03-09-2019, 09:33 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
lock is lock, user is still logged in, AND switch user is switch user, as I understand it. only one can be logged in at a time in the same "terminal". setup dummy terminals to use the same box, with one user who locked his log in and a different user wants to get in and use the same box (server) (?) while the other user is still logged in.
 
Old 03-09-2019, 09:42 AM   #3
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Waris View Post
Machine: Centos 7.6
GNOME: Version 3.28.2


Scenario:

USER A: Needs a break from work, clicks lock button on the top right hand side from the drop down menu. His machine is now locked.

USER B: Wants to use machine but he cant because the session is locked by USER A, there is no "Log in as another user" as it normally should be.


QUESTION: Why is the "Log in as another user" tab missing at a locked screen? How can this ability be enabled/disabled?

COMMENTS: I can ssh into the system and restart gdm and it would cause USER A's session to be killed and a login screen will prompt for a new session. i know that. i also know switching users from a terminal BUT for clarification purposes what i really want is the ability to be able to "Log in as another user" from the login screen. I've scoured google for a solution but to no avail.
To be able to "log in as another user" the screen LOCKing utility you're using must be able to
Quote:
1. start up another X session (i.e. :1)
2. switchover to that X server
3. probably start a display manager (gdm or such) to get the user ID and password
It looks like the lock screen util your system is using cannot do that.

You can simulate it by hand, by:
logging in on a TEXT console and starting up another X session from there (startx with a :1 argument or such).
But for two users to be active at the same time on the same screen you will need two different X servers to be running.

Last edited by ehartman; 03-11-2019 at 07:18 PM. Reason: Remove superfluous text
 
Old 03-11-2019, 12:25 PM   #4
Waris
Member
 
Registered: May 2017
Distribution: Centos 6,7 and Windows
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
To be able to "log in as another user" the screen LOCKing utility you're using must be able to

It looks like the lock screen util your system is using cannot do that.

You can simulate it by hand, by:
logging in on a TEXT console and starting up another X session from there (startx with a :1 argument or such).
But for two users to be active at the same time on the same screen you will need two different X servers to be running.
3. the switch to that other sessio


Thanks for the reply. ctrl+Alt f2 or 3 are disabled in this particular system which means there is no way i can start a text terminal and start an xserver.
Its a tough one.
 
Old 03-11-2019, 07:26 PM   #5
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Waris View Post
Thanks for the reply. ctrl+Alt f2 or 3 are disabled in this
It mostly is ctrl-alt-F6 to switch to the single, active, text console, but systemd may have changed that too (one of the reasons I do not use systemd, it changed too many things I've been using for the last 30 years).

Otherwise you will have to use another screen saver (or probably - the other user must do so), because without access TO a text console a locked computer esssentially means:
Another user can NOT login when the system is locked!
I know the KDE screensaver/lock application (used to?) was able to do a switch to another user, but only when the login was done through kdm (as IT in fact did the switch, the lock utility only requested it from the still running instance of KDM.
But CentOS of course isn't using KDM as the graphical display/login manager.
 
Old 03-11-2019, 07:34 PM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,007
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
I got around this at work by replacing gdm with lightdm.
 
Old 03-12-2019, 01:39 PM   #7
Waris
Member
 
Registered: May 2017
Distribution: Centos 6,7 and Windows
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Timothy Miller View Post
I got around this at work by replacing gdm with lightdm.

Does lightdm change the look of the desktop? I have tried just about everything with get this working including reinstalling gdm and group installing "server with GUI". I am curious to see if this will help, If it does bring changes to the look of centos then unfortunately i wouldn't be able to try this due to project requirements.
 
Old 03-12-2019, 01:47 PM   #8
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,007
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
The desktop, of course not, it's just a login manager. The login screen, yes, it's a different login screen.
 
Old 04-06-2019, 08:17 AM   #9
FrankPhete
LQ Newbie
 
Registered: Mar 2019
Location: Bulgaria
Distribution: FrankPheteZE
Posts: 4

Rep: Reputation: Disabled
"Log in as another user" missing centos 7

There was a downloadable update specificly for CentOS4 via YUM...i will see if i can find the location for you.
 
Old 04-16-2019, 04:28 PM   #10
Waris
Member
 
Registered: May 2017
Distribution: Centos 6,7 and Windows
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by FrankPhete View Post
There was a downloadable update specificly for CentOS4 via YUM...i will see if i can find the location for you.

Were you able to find it?
 
  


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
How to log internal-sftp chroot jailed users access log to /var/log/sftp.log file LittleMaster Linux - Server 0 09-04-2018 03:45 PM
Configure sudoers in CentOS 5.10 for a user to run a script owned by another user as that user ripelivejam Linux - Newbie 2 12-22-2015 02:02 PM
how to fix "Please have a look at the log file for details: /var/log/jockey.log" harisuciha Linux - Hardware 3 04-29-2012 12:59 PM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 05:37 AM

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

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