Dear All, I have been running linux 9 server as a dns and mail server and is workin fine.. i want to install CENTOS 5 with all the latest mail server software and bind as well as all the libraries on another machine whic is already done also the data is backed up and will be tranferred. but i would like to know i have about existing 100 mail users how could i tranfer these usernames and passwrd to the new CENtos 5 server .. if i copy the /etc/passwd from my linux server it gonna overite my centos5 /etc/passwd file as there r new users n also new groups create when i installed centos5 n software also i see that the /etc/shadow has only read permisson for root so cant be over written is there a way i cd possiblly have the existing users with thier password on centos5 so i dont have to ask them for their passwords n create all users again appreciat ur help Thanks and regards simon -- Network Administrator
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 simon wrote:> Dear All, > > I have been running linux 9 server as a dns and mail server and is workin > fine.. > > i want to install CENTOS 5 with all the latest mail server software and > bind as well as all the libraries on another machine whic is already done > > also the data is backed up and will be tranferred. > > > but i would like to know > > i have about existing 100 mail users > > how could i tranfer these usernames and passwrd to the new CENtos 5 server .. > > if i copy the /etc/passwd from my linux server it gonna overite my centos5 > /etc/passwd file as there r new users n also new groups create when i > installed centos5 n software > also i see that the /etc/shadow has only read permisson for root so cant > be over written > > is there a way i cd possiblly have the existing users with thier password > on centos5 so i dont have to ask them for their passwords n create all > users again >Create copies of /etc/{passwd,shadow,group} from the original system. Edit the copies to EXCLUDE existing user/groups. Append the remaining entries to the existing file. e.g.: cp /etc/passwd /etc/passwd.old # from the old system vim passwd.old (and edit out the existing entries) copy passwd.old to the new system cat passwd.old >> /etc/passwd (notice the '>>') Repeat for group & shadow. Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFGpkkLCFu3bIiwtTARAmBqAJ9vr7WLzUbHsTVlfjQOHNgkxY5o8QCgm7UE gwploWjfp54KlMQ1OF7rkYQ=NMBd -----END PGP SIGNATURE-----
On 24/07/07, simon <mailadmin at baladia.gov.kw> wrote:> i have about existing 100 mail usersIt looks like you should really seriously think about hosting mails using virtual domains. If you use virtual domains, you can just copy /etc/shadow to the new machine and tell Cyrus/Courier/[whatever] to use PAM to authenticate with the shadow file. Refer to howtoforge.com for details on virtual domain. If you are going to go ahead with the /etc/{password,shadow,group} route, then you also gotta make sure /home/* has the right UID/GID. -- Alvin Chang Yu-Ming
<HTML> <HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="OPENWEBMAIL" name=GENERATOR> </HEAD> <BODY bgColor=#ffffff> <font size="2">maybe this can work for you: <br /> <br />http://easy-technologies.com/rhel3_upgrade.pdf <br /> <br />-- <br /> <br /> <br /><b>---------- Original Message -----------</b> <br /> From: "simon" <mailadmin@baladia.gov.kw> <br /> To: "CentOS mailing list" <centos@centos.org> <br /> Sent: Tue, 24 Jul 2007 21:59:41 +0400 (ADT) <br /> Subject: [CentOS] migrating users from linux to centos <br /> <br />> Dear All, <br />> <br />> I have been running linux 9 server as a dns and mail server and is workin <br />> fine.. <br />> <br />> i want to install CENTOS 5 with all the latest mail server software and <br />> bind as well as all the libraries on another machine whic is already done <br />> <br />> also the data is backed up and will be tranferred. <br />> <br />> but i would like to know <br />> <br />> i have about existing 100 mail users <br />> <br />> how could i tranfer these usernames and passwrd to the new CENtos 5 server .. <br />> <br />> if i copy the /etc/passwd from my linux server it gonna overite my centos5 <br />> /etc/passwd file as there r new users n also new groups create when i <br />> installed centos5 n software <br />> also i see that the /etc/shadow has only read permisson for root so cant <br />> be over written <br />> <br />> is there a way i cd possiblly have the existing users with thier password <br />> on centos5 so i dont have to ask them for their passwords n create all <br />> users again <br />> <br />> appreciat ur help <br />> <br />> Thanks and regards <br />> <br />> simon <br />> <br />> -- <br />> Network Administrator <br />> _______________________________________________ <br />> CentOS mailing list <br />> CentOS@centos.org <br />> <a target="_blank" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a> <br />> <br />> -- <br />> Este mensaje ha sido analizado por MailScanner <br />> en busca de virus y otros contenidos peligrosos, <br />> y se considera que está limpio. <br />> For all your IT requirements visit: <a target="_blank" href="http://www.transtec.co.uk/">http://www.transtec.co.uk</a> <br /><b>------- End of Original Message -------</b> <br /> </font> </BODY> <br />-- <br />Este mensaje ha sido analizado por <a href="http://www.mailscanner.info/"><b>MailScanner</b></a> <br />en busca de virus y otros contenidos peligrosos, <br />y se considera que está limpio. <br />MailScanner agradece a <a href="http://www.transtec.co.uk/">transtec Computers</a> por su apoyo. </HTML>