Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

move user to new server

I want to move some users to a new server (RH7.2) so as to reduce the loading of old server (RH7.2).

Will it work if I copy some lines (the users which i want to move) of /etc/passwd and /etc/shadow from old server and paste these lines to the corresponding files in new server?

the desire result is that I don't need to create those users and re-set passwords for them.

any good suggestion?
0
klnhk
Asked:
klnhk
1 Solution
 
jlevieCommented:
That'll work if you include the relevant lines from /etc/group in your transfer (assuming each user in in their own group. You'll likely also want to move the users home dir to the other server.
0
 
barreroCommented:
Just take care about copying also their home directories, and other files of your users.
Why don't you consider to set up a NIS/NFS server, bye this way you just donĀ“t move some users, but every user can connect to one server or the other, and login without any problems...
Of course, to set up those services, you need a little more changes than just copying some files, and maybe change some structures in your FS to reflect the nes NFS system... and maybe lookup for some security issues, but once setted up, it will work fine.
We had more than 20 Sun stations, connected within one NIS domain, and all of our more than 100 users can connect to the system from any station.
I know, I'm in a linux forum, but the idea is the same. :-)

WIth NIS, then you can scale easier, by adding ner serrvers.. maybe with a spooling DNS address, you can solve the charge problem
0
 
ahoffmannCommented:
it will work in most cases, but take care with /etc/shadow.
The string for the encrypted password depends on the used crypt() function, you might have different ones on these servers.
0
 
hnminhCommented:
if you want to move users' existing data, tar command with option -p (aka --same-permissions or --preserve-permissions) when creating and extracting will help.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now