Moving existing users from one Linux server to...
another Linux server with indentical settings. I built another Linux server 2.1AS with identical settings (different hostname) for redundancy and practice. I would like to save sometime by moving all the users and groups over to the new server. Would this be possible without a backup software or any kind? If yes, what are some of the steps that I need to take to proceed? Any ideas??
Thank you in advance. |
Sure, just copy these over to the new box...
/etc/passwd /etc/shadow /etc/group /home/* |
Thanks for the quick response. Would you know if I can FTP these files over, would these files permission stay the same?
Again, thanks!! |
I don't know what ftp would do to the permissions.
|
Just thought I asked....
Thank you!! |
Another question;
What if my my "root" account doesn't have the same UID & GID for both boxes and I am trying to copy from one to the other? Will this going to mess up my plan? Homey - What would you do if you need to put in place a "warm" spare incase of downtime on the production server? I don't want to have to reinvent the wheel so to speak and minimum down-time if all possible. I am interested in your feedback. Thanks, xmdms |
Well now that you ask, :)
I would make an image of your up and running system. I do that anyway for a surefire backup, but if you want to clone this system to another box, it is very easy to grab that image and install it to the new box. Partimage works very nicely for this as it only copies the used areas of the disk as apposed to dd which copies everything ( used or not ). In other words partimage is much faster. Also, I copy the partition table with sfdisk which makes it very handy to copy that file onto another hard drive. |
The user 'root' always has the uid=000.
|
All times are GMT -5. The time now is 05:57 AM. |