I JUST did this for a client, maybe 4 days ago. More below.<br clear="all"><br><br>Shawn T Perry<br>Red Mop Computing Services<br>email: <a href="mailto:shawn@redmop.com" target="_blank">shawn@redmop.com</a><br>office: 720-319-7627<br>
cell: 303-881-2623<br>web: <a href="http://www.redmop.com/" target="_blank">http://www.redmop.com</a><br>
facebook: <a href="http://www.facebook.com/pages/Red-Mop-Computing-Services/114352628589778" target="_blank">http://www.facebook.com/pages/Red-Mop-Computing-Services/114352628589778</a><br>linkedin: <a href="http://www.linkedin.com/in/shawnperry" target="_blank">http://www.linkedin.com/in/shawnperry</a><br>
<br><br><div class="gmail_quote">On Mon, May 30, 2011 at 3:40 PM, David L. Anselmi <span dir="ltr"><<a href="mailto:anselmi@anselmi.us">anselmi@anselmi.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Yaverot wrote:<br>
> I want to move one (or two, but less than 5) user account from a Ubuntu Linux (not yet 10.10<br>
> version) to a Gentoo box. The Ubuntu system is low RAM, and have very low hard drive space<br>
> remaining.<br>
<br>
</div>On Gentoo, create accounts for the users you want to move. Use those accounts to copy all the files<br>
in the home directories to Gentoo. I'd use rsync. Do you need more detail on those steps?<br>
<br>
There are two things you need: the entry in /etc/{passwd,shadow}, the files in the home directory.<br></blockquote><div><br></div><div>And the entries in /etc/gshadow and /etc/group as well</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
You can't copy the /etc/passwd entry between machines unless the UID is unused on Gentoo. If it<br>
isn't used then copying that line and making an empty home dir would be easy. You can copy the<br>
password hash between shadow files but that isn't easier than just re-entering it.<br></blockquote><div><br></div><div>You can copy the passwd entries as long as you change the UID to something that isn't used on Gentoo (the new box). Don't forget /etc/group as well.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Normally when a new account is created some files will be put in $HOME. Probably you don't care<br>
about overwriting them with the files from the Ubuntu system but if you have different desktops some<br>
of the files might conflict or be unneeded. Likewise if your Thunderbird versions are very different.<br></blockquote><div><br></div><div>on the new machine, run the following (read them ALL before running any of them)</div>
<div><br></div><div>rsync -avPihhH --delete-before --stats <username>@<oldhost>://home/<username> /home/<username> --dry-run # vPihh and --stats are optional, remove --dry-run after you're sure you have everything right.</div>
<div>chmod -Rc <username>:<username> /home/<username> # if the users are primarily members of their own groups</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">chmod -Rc <username>:user /home/<username> # if the users are primarily members of the user group</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Dave<br>
<div><div></div><div class="h5">_______________________________________________<br>
clue mailing list<br>
<a href="mailto:clue@cluedenver.org">clue@cluedenver.org</a><br>
<a href="http://cluedenver.org/mailman/listinfo/clue" target="_blank">http://cluedenver.org/mailman/listinfo/clue</a><br>
</div></div></blockquote></div><br>