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?

Recommended Answers

All 3 Replies

Does anyone have any thoughts on how to transfer the password along with the account?

Well, if you?re moving the account ver 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.

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.