954,190 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Transfer Linux passwords

I know that you can transfer accounts by coping /etc/passwd to a different computer however I'm not certain about transfering the passwords themselves. Does anyone have any thoughts on how to transfer the password along with the account?

malexander
Newbie Poster
1 post since Jul 2003
Reputation Points: 10
Solved Threads: 0
 
Does anyone have any thoughts on how to transfer the password along with the account?

Well, if you?re moving the accountver batim from one machine to another?that is, with the same user IDs and everything?then just copy the lines from /etc/shadow (assuming you?re using shadow passwords) into the other machine?s /etc/shadow.

deanpence
Newbie Poster
19 posts since Jul 2003
Reputation Points: 14
Solved Threads: 0
 

and if you're not using the shadow suite, then copy the lines form the /etc/passwd

Eico
Light Poster
41 posts since Mar 2004
Reputation Points: 10
Solved Threads: 2
 

Whichever file your system uses, make sure that the numerical UIDs don't match any other users on the system. If they do, those two users will have access to the exact same sets of files.

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: