Solved

move user to new server

Posted on 2002-04-30
4
280 Views
Last Modified: 2010-04-20
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
Comment
Question by:klnhk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 200 total points
ID: 6980407
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
 
LVL 2

Expert Comment

by:barrero
ID: 6981051
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6981203
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
 
LVL 3

Expert Comment

by:hnminh
ID: 6983677
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
trouble on installing syslog-ng on CentOS 7 7 142
pvcreate issue 5 93
Shrink Linux Swap File Size CentOS 10 66
AWS Linux EC2 question on group 7 80
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question