{"id":635,"date":"2010-01-04T15:45:40","date_gmt":"2010-01-04T20:45:40","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=635"},"modified":"2019-09-04T19:57:39","modified_gmt":"2019-09-05T00:57:39","slug":"635","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=635","title":{"rendered":"How to migrate users and groups from Solaris 9 to 10?"},"content":{"rendered":"<p>I just installed Solaris 10 on a new SPARC server, now I need to migrate the userids and groups over.  The optimal way to migrate the userids while retaining their password is to simply copy three files from the Solaris 9 server over to the new Solaris 10.  The three files are \/etc\/passwd, \/etc\/shadow, and \/etc\/group.  Before you do that make a backup of the original files on the new server, you may need them to reverse the effect.  Make sure to change the ownership of the files after you have copied them, the owner should be root and the group is sys.<\/p>\n<p>Make copies of the original files first.<\/p>\n<blockquote><div style=\"float: left;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 468;\ngoogle_ad_height = 60;\ngoogle_ad_format = \"468x60_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>pwd<br \/>\n\/etc<\/p>\n<p># cp passwd passwd.original.lina<br \/>\n# ls -l pass*<br \/>\n-rw-r\u2013r\u2013   1 root     sys          672 Sep  3 14:22 passwd<br \/>\n-rw-r\u2013r\u2013   1 root     root         672 Dec 23 14:53 passwd.original.lina<br \/>\n# chown root:sys passwd.original.lina<br \/>\n# ls -l passw*<br \/>\n-rw-r\u2013r\u2013   1 root     sys          672 Sep  3 14:22 passwd<br \/>\n-rw-r\u2013r\u2013   1 root     sys          672 Dec 23 14:53 passwd.original.lina<br \/>\n# cp shadow shadow.original.lina                                       <\/p>\n<p># chown root:sys shadow.original.lina                                  <\/p>\n<p># cp group group.original.lina<br \/>\n# ls -l group*<br \/>\n-rw-r\u2013r\u2013   1 root     sys          289 Sep  3 14:22 group<br \/>\n-rw-r\u2013r\u2013   1 root     root         289 Dec 23 14:56 group.original.lina<br \/>\n# chown root:sys group.original.lina<br \/>\n#     <\/p><\/blockquote>\n<p>Copy the 3 files from fameserver2 to the new server:<br \/>\n<strong>\/etc\/passwd, \/etc\/shadow, and \/etc\/group<\/strong>.<\/p>\n<p>The easiest way to copy the files from a remote server is to use ftp.  Change to the destination directory before you issue the ftp command.  When copying files via ftp the destination is the directory where you run the ftp command from.<\/p>\n<p>For example:<\/p>\n<blockquote><p># cd \/etc<br \/>\n# ftp remote.server.com<br \/>\nftp> get \/etc\/passwd<br \/>\nftp> bye<\/p><\/blockquote>\n<p>Here is a brief description of the three files.<br \/>\n<strong>passwd<\/strong> contains the usedids and path for their home directory<br \/>\n<strong><strong>shadow<\/strong> contains the encrypted password<br \/>\ngroup <\/strong>contains the groups   <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just installed Solaris 10 on a new SPARC server, now I need to migrate the userids and groups over. The optimal way to migrate the userids while retaining their password is to simply copy three files from the Solaris&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=635\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[55,35],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/635"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=635"}],"version-history":[{"count":3,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/635\/revisions"}],"predecessor-version":[{"id":978,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/635\/revisions\/978"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=635"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}