Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-08-2017, 04:55 PM
|
#16
|
Member
Registered: May 2011
Location: Texas
Distribution: Debian/Ubuntu,CentOS
Posts: 848
|
Why not just have the user login for you with his credential?
|
|
|
06-09-2017, 08:46 AM
|
#17
|
Member
Registered: Dec 2014
Posts: 84
Rep:
|
You could create an authorized key to login on each user id. that is defined to your system. This would allow you to log in without knowing the user id.'s password.
|
|
|
06-09-2017, 09:07 AM
|
#18
|
Member
Registered: Aug 2012
Posts: 35
Original Poster
Rep:
|
Deleted
Last edited by mtsoule; 06-09-2017 at 09:28 AM.
Reason: Deleted
|
|
1 members found this post helpful.
|
06-09-2017, 09:13 AM
|
#19
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by mtsoule
... Remember, we were all newbies at one point and asked, what seemed to others as an "Ignorant question", but its all a part of the learning process..
Thank you all
|
Absolutely.
I hope you succeed in your endeavour. Please feel free to return as needed should you have any other questions.
Cheers.
|
|
|
06-09-2017, 09:21 AM
|
#20
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,938
|
Quote:
Originally Posted by 273
Talk to somebody who knows what they are doing and ask them to set it up for you.
Please, for everyone's good, step away from the computer now!
Apologies for potentially breaking forum rules but I do not think that letting somebody ignorantly assume the power of other users is in the best interest of anyone else.
|
Quote:
Originally Posted by mtsoule
You don't have to be mean, this is why I posted this in the "Newbie" section.. I was just looking to see if this could be done..
I do NOT ask for user passwords, nor do I want them. unfortunately, I do not have a Richard Cranium, like yourself to ask questions, that is why I asked here.
most of the response I receive were very good suggestions, and I thank everyone who replied.
My goal was to assume the permissions of a user so I may test scripts etc.. without actually needed them to log in for me, I am the administrator and root so I do have the needed clearance to do what is needed, just looking for a cleaner way to do it via the GUI.
that would help me in the "Icon on my desktop isn't working right" case.
I am trying to use beast practices, however I am also learning those as I go along...
Remember, we were all newbies at one point and asked, what seemed to others as an "Ignorant question", but its all a part of the learning process..
Thank you all
|
While I failed to take note of and also consider that 273's post offering an accompanied apology within the post is still not in the proper light of LQ, mtsoule your direct attack back with implied name calling clearly also is not in the proper light of LQ. A fact which I feel you should also understand having been signed up on LQ for about 5 years.
Therefore let's calm down with comments, and not take further offense at each other.
|
|
2 members found this post helpful.
|
06-09-2017, 09:28 AM
|
#21
|
Member
Registered: Aug 2012
Posts: 35
Original Poster
Rep:
|
I do apologize to 273, rtmistler, you are correct, and I apologize to the community. I will delete my post..
|
|
|
06-09-2017, 09:30 AM
|
#22
|
Member
Registered: Dec 2014
Posts: 84
Rep:
|
You can find a lot of help if you search on google with the phrase: "How to setup passwordless SSH.". Good luck!
|
|
|
06-09-2017, 03:17 PM
|
#23
|
Senior Member
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Rep:
|
Quote:
Originally Posted by jefro
I've never tried this but sudo su -user may work. Not sure.
It would be simple to go to Mike and tell him that you are the admin and you need his password. No one ever stops me from asking.
|
NO user should ever give his password to ANYONE.
Last edited by lazydog; 06-09-2017 at 03:20 PM.
|
|
|
06-11-2017, 03:49 PM
|
#24
|
Moderator
Registered: Mar 2008
Posts: 22,236
|
Thank you mtsoule for your correction. Takes a big person to admit mistakes in public.
I was assuming that you had full authority to take on this process. If not then we shouldn't be helping. If you do need that password and it is a business case then tell your manager that you need it.
I assume this is a commercial business. The business owns all the data and can by many court rulings compel employees to reveal passwords. Condition of employment.
Last edited by jefro; 06-11-2017 at 03:53 PM.
|
|
|
06-11-2017, 04:09 PM
|
#25
|
Member
Registered: Aug 2012
Posts: 35
Original Poster
Rep:
|
Quote:
I was assuming that you had full authority to take on this process. If not then we shouldn't be helping. If you do need that password and it is a business case then tell your manager that you need it.
I assume this is a commercial business. The business owns all the data and can by many court rulings compel employees to reveal passwords. Condition of employment.
|
I DO have full authority, and I am ROOT (just don't log in as such, unless needed). I can ask the users for their passwords, although I don't like to. it is a commercial business and the company does own all the equipment and data. So, your assumption was correct. Thanks for asking
|
|
|
06-11-2017, 04:32 PM
|
#26
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
$ su
or
$ sudo -s
or
$ sudo -i
and
# su - mike
It doesn't prompt for mikes password when you are root. One of the many dangers of root priviledge. Ofc as root you could delete mikes password, and/or set your own. Most of which will violate the standards of larger commercial entities. And potentially laws of your community. Plus you don't want to hand that environment to mike as he could exit to be root and exit again to be you.
Last edited by Shadow_7; 06-11-2017 at 04:36 PM.
|
|
|
06-11-2017, 05:14 PM
|
#27
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
It's probably more standard to make a clone of mike, call it mikes_clone or something. Make sure it's in all the same groups. And use that for whatever testing needs to be done. Not always easy in corporate structures with proprietary systems and in house access control stuff. But at least you keep the user protected from your mistakes. And have something to show the boss to prove you weren't on the john for six of your eight hours at work.
Last edited by Shadow_7; 06-11-2017 at 05:16 PM.
|
|
1 members found this post helpful.
|
06-11-2017, 06:23 PM
|
#28
|
Member
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997
|
Might the extreme of manually editing /etc/shadow work, temporarily replacing the user's encrypted pwd string with yours?
Of course, be careful to not break /etc/shadow! (Maybe you could even preserve its current inode via: mv shadow s;cp s shadow, then, when done, mv s shadow)
What if: user's problem is from physical display device they are using, so it could ONLY be reproduced AT their physical location (by them / watching their exact actions) ?
What if (re: clone): user has something like: check id == '^mike$' ?
Of course, there's always the possibility of complexities like specialized identity management setups (which don't use /etc/shadow), SEL/etc. "magic", ...
Last edited by !!!; 06-11-2017 at 06:47 PM.
|
|
|
06-12-2017, 07:51 AM
|
#29
|
Member
Registered: Aug 2012
Posts: 35
Original Poster
Rep:
|
Quote:
Might the extreme of manually editing /etc/shadow work, temporarily replacing the user's encrypted pwd string with yours?
|
Yea, I thought about that.. only down fall, is if something goes wrong potentially destroying all of the accounts ,including root. however, first thing I would do is backup shadow.
thought about writing a script to do this.. but, suppose Mike is already logged in, and his password changes via shadow, how would that affect him?
perhaps safest thing is SU. but, I need to test if I SU to Mike from Root, do I have mikes prevs, or root prevs? I would assume Mikes, otherwise there would be no point.
|
|
|
06-12-2017, 08:26 PM
|
#30
|
LQ Veteran
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: Rocky 9.5
Posts: 5,843
|
Quote:
Originally Posted by mtsoule
perhaps safest thing is SU. but, I need to test if I SU to Mike from Root, do I have mikes prevs, or root prevs? I would assume Mikes, otherwise there would be no point.
|
It's been said before, but I'll repeat it: If you from root, you will have mike environment and privileges, you will even be moved into his $HOME You will not be prompted for a password.
if you leave out the - , you'll have mike privileges, but the root environment. You will not be moved to his $HOME.
|
|
|
All times are GMT -5. The time now is 12:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|