LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-03-2006, 09:38 AM   #1
wheel
Member
 
Registered: Sep 2003
Posts: 33

Rep: Reputation: 16
Moving user passwords across servers


I'm moving my webhosting from one server to another. I set up the same users on the new server, then rsynced the directories across. Now I want to migrate the user passwords across as well so that I don't need to issue new passwords.

Can I just copy the relevant lines from /etc/shadow and overwrite the same lines in that file on the new server? Or is there something else I need to do to move the user passwords.
 
Old 04-03-2006, 10:39 AM   #2
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Provided you havent done anything "clever" with PAM, a simple copy should be fine.

Regards
-Rob
 
Old 04-04-2006, 10:29 AM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
You also need to copy over the relavent lines from /etc/passwd and /etc/group
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Us bank sees savings by moving to Linux servers LXer Syndicated Linux News 0 01-20-2006 02:01 AM
moving users with passwords to a new distro nazir Linux - Newbie 5 12-22-2005 12:41 PM
Moving Solaris Users and Passwords to Linux chicofidel Linux - Newbie 6 08-19-2005 06:55 AM
Moving encrypted passwords to a new host paulsm4 Linux - Software 1 09-17-2004 01:40 AM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration