Login as another user using root - ehMac.ca
Facebook
Twitter
YouTube
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old Jul 9th, 2009, 10:39 AM   #1
Full Citizen
 
Join Date: Dec 2007
Location: Kingston, ON
Posts: 65
Login as another user using root

As the superuser (or root) in Leopard, how can I log into another users desktop without knowing their password?

I have a MacPro that is shared between a number of people and I have administrative rights to the machine. We also have some expensive software which we have to share the license for. I suspect that some users are logging into their accounts, starting up this software but not closing the software (thereby freeing up the license for others to use), and then they are logging out. Is it possible for me to log into their desktop, so that I can verify whether they are actually using the software or not?
benk is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old Jul 9th, 2009, 10:52 AM   #2
Mac Guru
 
monokitty's Avatar
 
Join Date: Jan 2002
Posts: 13,969
If you log out of your user account, all applications are quit unless they're "fast user switching" out. (i.e; not really logging out, just switching back to the login window so people can't use their account.) If they're actually logging out, then the software can't be left running under their account in any case, which rules out that possibility.
__________________
ACMT
Mac mini (Mid 2011) 2.7 GHz i7, 8GB RAM, Crucial M4 256GB SSD + 500GB + 1TB FW800 OWC Mercury Elite Pro mini
iPhone 4SiPod nano 8GBSound System Audio Engine A2Display UltraSharp U2412M 24"
monokitty is offline   Reply With Quote
Old Jul 9th, 2009, 11:10 AM   #3
Full Citizen
 
Join Date: Dec 2007
Location: Kingston, ON
Posts: 65
I suspect they are fast user switching then. It says they are still logged in. Regardless, is there a way to login to their desktop using root? I'm pretty sure I've done this before in Ubuntu.
benk is offline   Reply With Quote
Old Jul 9th, 2009, 11:26 AM   #4
Mac Guru
 
monokitty's Avatar
 
Join Date: Jan 2002
Posts: 13,969
Quote:
Originally Posted by benk View Post
I suspect they are fast user switching then. It says they are still logged in.
They're fast user switching.

Disable fast user switching under System Preferences > Accounts > Login Options and problem solved. Force everyone to logout entirely.
__________________
ACMT
Mac mini (Mid 2011) 2.7 GHz i7, 8GB RAM, Crucial M4 256GB SSD + 500GB + 1TB FW800 OWC Mercury Elite Pro mini
iPhone 4SiPod nano 8GBSound System Audio Engine A2Display UltraSharp U2412M 24"
monokitty is offline   Reply With Quote
Old Jul 9th, 2009, 11:39 AM   #5
Full Citizen
 
Join Date: Dec 2007
Location: Kingston, ON
Posts: 65
That's not ideal. The software is meant for numerical methods and can take a few days before the simulations are done. In the meantime, other users want to be able to use the mac (just not this particular software). So fast switching should stay on.

All I want to know is this: Is there a way to log into a users desktop with the root password? If yes, how?
benk is offline   Reply With Quote
Old Jul 9th, 2009, 12:59 PM   #6
Honourable Citizen
 
chas_m's Avatar
 
Join Date: Dec 2007
Location: Victoria BC
Posts: 11,796
Send a message via AIM to chas_m
You'll forgive us for being hesitant to disclose any root-related techniques. The Mac is a very secure platform specifically because root is DISabled by default and we are naturally not forthcoming to strangers asking root questions.

As I understand your problem, you have other users who may be using a bit of software that is currently licensed for only one user at a time, and who may not be closing it when they switch users. But then you tell us that this software may NEED to run for a long time, and thus fast user switching (the curtailing of which would solve the issue) can't be done.

Well, which is it? You can't have it both ways, root user or no root user. Either these folks need to be able to keep the software running across days, or they don't. If they don't, make them fully log out by disabling fus. If they do, put a sticky on the machine reminding the other users to please close ALL unused apps BEFORE switching users.

Or, if possible, buy more licenses/seats for this software.

Hard as it may be for an admin to believe, interaction with other humans can be rewarding.
chas_m is offline   Reply With Quote
Old Jul 9th, 2009, 01:44 PM   #7
Full Citizen
 
Join Date: Dec 2007
Location: Kingston, ON
Posts: 65
Quote:
Originally Posted by chas_m View Post

As I understand your problem, you have other users who may be using a bit of software that is currently licensed for only one user at a time, and who may not be closing it when they switch users. But then you tell us that this software may NEED to run for a long time, and thus fast user switching (the curtailing of which would solve the issue) can't be done.
Kindof correct. We have 1 license for this software (and so only 1 instance of the software can be open at a time). The software runs simulations that can take a couple of days to finish. Fast user switching is required so that other users can use the mac while the simulations are going on. These simulations could take say 1 or 2 days to complete...we don't know exactly how long they'll take. The only way to find out if the simulations are finished is to check the output from the program. This is why I need to be able to log into the users Desktop to check to see if the simulations are done. If they are, I can free up the license for somebody else to use. Getting a second license isn't too practical since the license is more expensive than our mac pro.

So, this is what I want to do:

Log into another users desktop (who has logged out using fast user switching) using the admin login username/password to check to see if the simulations are done. From the command line I can browse files with admin privileges, but how do I log into their Desktop?

A similar problem would be this: A user locks the computer (note: I haven't actually done this in Leopard but I assume it's possible). Admin privileges should be able to unlock the computer. How would I unlock the computer when it only asks for the password and not a username? (I should be able to specify that I want to unlock the computer as an admin user, but I don't know how).
benk is offline   Reply With Quote
Old Jul 9th, 2009, 01:46 PM   #8
Honourable Citizen
 
EvanPitts's Avatar
 
Join Date: Mar 2007
Location: Hamilton, ON
Posts: 6,430
Quote:
Originally Posted by benk View Post
That's not ideal. The software is meant for numerical methods and can take a few days before the simulations are done. In the meantime, other users want to be able to use the mac (just not this particular software). So fast switching should stay on.

All I want to know is this: Is there a way to log into a users desktop with the root password? If yes, how?
Not directly. As Root, the most you would be able to do from the terminal is to shut down their console, or their tasks, with the ps and kill commands. However, it is not elegant, as I know of no way from doing it from inside Aqua...
__________________
Powered By Acer AMD NEO II & Windows 7 - Legacy Apple Systems Are OSX Panther Powered!
EvanPitts is offline   Reply With Quote
Old Jul 9th, 2009, 09:26 PM   #9
Full Citizen
 
Join Date: Jun 2006
Location: Halifax, NS
Posts: 347
A roundabout way might be to have every user start a VNC server application at login, each on a different port. Then use a VNC client to connect to every user's VNC server, giving you complete control of their desktops.
__________________
Apple Certified Trainer (Mountain Lion 101/201), ACTC 10.8, ACSP 10.8, ACSA 10.6, ACMT
Theseus is offline   Reply With Quote
Old Jul 10th, 2009, 08:26 AM   #10
Full Citizen
 
Join Date: Dec 2007
Location: Kingston, ON
Posts: 65
Quote:
Originally Posted by Theseus View Post
A roundabout way might be to have every user start a VNC server application at login, each on a different port. Then use a VNC client to connect to every user's VNC server, giving you complete control of their desktops.
Interesting idea. I'll give that a try. Thanks!
benk is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Intalling software as root user hhk Mac, iPhone, iPad and iPod Help & Troubleshooting 2 Apr 20th, 2007 08:17 AM
Need OSX system file gordguide Mac, iPhone, iPad and iPod Help & Troubleshooting 8 Feb 20th, 2005 05:00 PM
Can't enable root user in 10.2.6 simon Mac, iPhone, iPad and iPod Help & Troubleshooting 2 Jun 25th, 2003 12:24 PM
The latest Mac virus Sandy McMurray Anything Mac 27 May 27th, 2003 09:54 AM
More Routing Q?: Jaguar Network Setting Q? Ohenri Anything Mac 11 Dec 22nd, 2002 04:30 AM


All times are GMT -4. The time now is 10:37 AM.



Copyright © 1999 - 2012, ehMac.ca All rights reserved. ehMac is not affiliated with Apple Inc. Mac, iPod, iTunes, iPhone, Apple TV are trademarks of Apple Inc. Content Relevant URLs by vBSEO 3.6.0 RC 2

Tribe.ca: Urban living in Toronto!