Print user password


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Print user password
# 1  
Old 09-06-2010
Print user password

Hi everyone.
I have root acces to an Ubuntu machine.
This machine have several users so, being root, I can access to their account without knowing their password, simply using
Code:
sudo su user

But I need to know the password of a specific user, so in this situation, is there a technique to know what is the user password?
# 2  
Old 09-06-2010
Short answer: No.
Long answer: Unless they have a very very simple password, no.

UNIX does not save the passwords in plain text for obvious security reasons, but hashes them using a salt. For authentications the supplied password is also hashed, and the hashes are compared. If it's a very simple password one could use John the Ripper to crack it, but that's about it. Short of just asking the user that is.
# 3  
Old 09-06-2010
Ok, thank you for the explanation!
# 4  
Old 09-08-2010
May I do an answer here? If you can be root, then you have access to everything! All files and folders of ALL users. Why to want to know others' passwds?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Print asterisk instead of password (Bash)

OS : RHEL 6.5 Shell : Bash With the following bash shell script, when I enter password, it won't be printed in the screen. But, I would like Asterisk character to be printed instead of the real characters. Any idea how ? $ cat pass.sh echo "Enter the username" read username echo... (3 Replies)
Discussion started by: John K
3 Replies

2. Shell Programming and Scripting

How to scp File from root user in one server to say crt user in another server and avoid password?

Can someone help in writing some script through which I can transfer file (scp) from root user in abc server to crt user in hfg server and can give the crt user password in script itself so that it doesn't prompt me every time for password (4 Replies)
Discussion started by: Moon1234
4 Replies

3. Solaris

cant set password for user

hi everybody i cant set password for user (jam) i tried to #passwd jam enter newpasswd : after enter it showing passwd : cannot get default domain:internal yp server or client error i also check cat /etc/shadow file jam:*:LK*:........ user is locked ... and i... (4 Replies)
Discussion started by: coolboys
4 Replies

4. UNIX for Advanced & Expert Users

password verification verify password of a user for only first 8 characters

Helo , I m using linux pam library for user and its password authentication. I m creating new user and giving its password.I m giving password of 10 characters.now when I login in as that newly created user its ask me $ su - ram Password: You are required to change your password immediately... (12 Replies)
Discussion started by: amitpansuria
12 Replies

5. AIX

changing user password

I have 02 servers: - Linux RHEL AS 3 (server1) - AIX 5.2 (server2) Running the command rsh server2 passwd derje from the server1 to change derje user password on server2, give me this error: 3004-709 Error while changing the password for "derje" Can somebody help me ? (0 Replies)
Discussion started by: mayge
0 Replies

6. UNIX for Dummies Questions & Answers

Can't change password for a user

All, I am unable to change a password for the user called : poller I am logged in as root When I do the following command passwd poller New Password: Permission denied Whe i enter the new password, it gives the above error. When i log in as poller and then execute the command, then... (2 Replies)
Discussion started by: rahulrathod
2 Replies

7. UNIX for Dummies Questions & Answers

Print on a printer which is password protected

Hi, I am trying to print from HP unix machine to a Toshiba printer which is password protected. How can I print? Thanks. Anuj (1 Reply)
Discussion started by: Anuj
1 Replies

8. UNIX for Dummies Questions & Answers

Add User and Password

hello i have some probelm in the Unix Sun system ....so anyone can u help me how to sovle the problem : 1.how to add the user name and password. 2.list out the command.. Thank You (1 Reply)
Discussion started by: alan thui
1 Replies

9. UNIX for Dummies Questions & Answers

user Id vs Password

Hello out there in unix.com land. I am Cerberus and this is my first post. I am brand new to Unix and i have a quesiton for you all. Relating to the Unix Password File Setup, what is: User ID? Password? any insite comparing one to the other as far as specifics would be greatly... (2 Replies)
Discussion started by: Cerberus
2 Replies
Login or Register to Ask a Question