LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-09-2011, 02:31 PM   #1
CrewXp
Member
 
Registered: Jan 2004
Posts: 83

Rep: Reputation: 15
Easiest way to login as another user on domain using an Administrator account?


Is there a way to login as another user within a domain? I'm an Administrator and often have people come to me with problems. Most of the time I'm unable to test to see if I've fixed their problem since they aren't there when I work on their computer. I have to login as Admin, but sometimes the problem comes back because of startup programs they have running or different profiles (when browser related)

Is there a way for me to login to their account using my administrator account? Or if not, is there a way to change their password using ssh, login, and then somehow change it back to whatever it was?

We're running Samba's Domain Server on a linux box. All of the computers are windows machines.

To change someone's password I use: smbldap-passwd usern. I just don't know how to get it back the way it was.
 
Old 05-09-2011, 02:36 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

If you are logged in as root then use su username to login with that particular user account.
 
Old 05-09-2011, 02:38 PM   #3
CrewXp
Member
 
Registered: Jan 2004
Posts: 83

Original Poster
Rep: Reputation: 15
thanks. that's how I access my root account using my username when I ssh into the server, but I was curious as to if there was a way to do that using a Windows PC which is connecting to the Domain on the Samba Linux Server. I think the user database uses LDAP Authentication.
 
Old 05-09-2011, 02:56 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Well I don't think so that there will be a way by which you can change the user password for logging in and then change it back to what it was because it is a security breach and OS can't allow that.

I have just tested it with simple passwd and shadow files and you can't do that. This is what I did:

1. In passwd I copied the line user01:x:501:501::/home/user01:/bin/bash and pasted it at the end of the passwd file. Then I # out the original line.
2. Same I did in /etc/shadow file.
3. Ran passwd user01 and changed the password.
4. Logged in with user01 with the new password.
5. Exited session and logged back in as root and checked /etc/passwd file and deleted the line that I added at the bottom and removed the # sign from the original line.
6. And when I checked /etc/shadow wow!! the line that I # out was gone. It updated the file at the moment I ran passwd user01.

That is how the OS security works you just can't do that, otherwise someone can do the same with root user account ;-) and you will never come to know that the security has been compromised.
 
  


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
Converting Windows Administrator account to regular user... A Question. damgar General 2 06-08-2010 07:50 PM
"Root" Domain Administrator Account Creation on a Samba PDC passedpawn1986 Linux - Server 2 09-23-2009 06:29 PM
How to give Domain Administrator privileges to Root user in Domain Controller Sumitsm Linux - Newbie 12 08-24-2009 12:53 AM
administrator account in domain melvinong Linux - Server 3 07-10-2007 10:35 PM
Can't login to domain account in X but can in shell mhodges Linux - Networking 2 10-22-2004 11:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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