Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
ISGEC - Samba Migration
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
You need to backup all of the above files and directories from old server to new Linux server. Commands to type on old Linux system First create a tar ball of old uses (old Linux system). Create a directory: # mkdir /root/move/ Setup UID filter limit: # export UGIDLIMIT=500 Now copy /etc/passwd accounts to /root/move/passwd.mig using awk to filter out system account (i.e. only copy user accounts) # awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534)' /etc/passwd > /root/move/passwd.mig Copy /etc/group file:Commands to type on new Linux system First, make a backup of current users and passwords: # mkdir /root/newsusers.bak # cp /etc/passwd /etc/shadow /etc/group /etc/gshadow /root/newsusers.bak Now restore passwd and other files in /etc/ # cd /path/to/location # cat passwd.mig >> /etc/passwd # cat group.mig >> /etc/group # cat shadow.mig >> /etc/shadow # /bin/cp gshadow.mig /etc/gshadow Please note that you must use >> (append) and not > (create) shell redirection. Now copy and extract home.tar.gz to new server /home # cd / # tar -zxvf /path/to/location/home.tar.gz Now copy and extract mail.tar.gz (Mails) to new server /var/spool/mail # cd / # tar -zxvf /path/to/location/mail.tar.gz Now reboot system; when the Linux comes back, your user accounts will work as they did before on old system: # reboot # awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534)' /etc/group > /root/move/group.mig Copy /etc/shadow file: # awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534) {print $1}' /etc/passwd | tee - |egrep -f - /etc/shadow > /root/move/shadow.mig Copy /etc/gshadow (rarely used): # cp /etc/gshadow /root/move/gshadow.mig Make a backup of /home and /var/spool/mail dirs: # tar -zcvpf /root/move/home.tar.gz /home # tar -zcvpf /root/move/mail.tar.gz /var/spool/mail scp -r /root/move/* user@new.linuxserver.com:/path/to/location
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)