Linux - NewbieThis 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.
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.
I am using Mandrake 9.1. I basically want to know how I can find the users and roots password? I have checked both etc/passwd and etc/shadow and both are encrypted.
That's the whole point of shadow... Are you locked out and want/need to get into the system? Reboot into single user mode and reset root password, reboot. As for users, I don't know how you can discover the password, but you can always reset it.
u cant ... thats the whole idea of passwords
You can probably get certain programs that "test the strength of passwords" by cracking them ... but I dont think that thats appropriate for this forum, or site for that matter.
How would a sys admin manage his network without being able to log in as a user on that network?
I don't know how others do it, but I NEVER login as root. I login as a regular user and if I need root priveledges, I do su - and enter root password and I then have root privs.
If you can log in as root and you don't have the password for some user account, you can change the password of that account. But if you are root, you can easily access that user account through the /home directory.
BTW, how come a system admin won't have this knowledge already?
Anyways...
passwd <useraccountname>
This would prompt you to key in the new password for that account. Give it the new password and then, you can login into that account by using this password.
"su {username}
It's not logging in as that user but "switching" to that user. type exit to end su process"
Typing exit would not help if I was text mode.
Look say I have a network of 5 Linux boxs. I am root in all and say all the boxs have two different users and both users are not me. If I am running root in text mode and I want to login as another user. How do I do that?
"Look say I have a network of 5 Linux boxs. I am root in all and say all the boxs have two different users and both users are not me. If I am running root in text mode and I want to login as another user. How do I do that?"
I have no idea what you are wanting here. You want to log into the other boxes as another user? ssh user@box_name
If you have 5 boxes with identical accounts on all, you should consider using something like LDAP authentication so if you change the password on LDAP, you don't have to worry about changing it on all the machines.
Quote:
"Typing exit would not help if I was text mode."
That is the easiest way to get out of su. How would you go about it?
login [user name]
I think I have confused this thread. All I really wanted to know is if there is a way to login as another user, who's password you do not have, or a way to get the password.
You can switch do another user ony if you're root. Passwords are kept in /etc/shadow, but they're hashed, so to get someone's password you'd need to try and guess it. There's no other way.
BTW To swicth user when you're root use
su username
Thats worked thanks. How do I kill an x session, as I can not startx another x server while one is running.
I know that by altering inittab in etc i can get it to run x, but is their a faster temporary way.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.