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">&lt;<a href="mailto:anselmi@anselmi.us">anselmi@anselmi.us</a>&gt;</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>
&gt; I want to move one (or two, but less than 5) user account from a Ubuntu Linux (not yet 10.10<br>
&gt; version) to a Gentoo box.  The Ubuntu system is low RAM, and have very low hard drive space<br>
&gt; 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&#39;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&#39;t copy the /etc/passwd entry between machines unless the UID is unused on Gentoo.  If it<br>
isn&#39;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&#39;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&#39;t used on Gentoo (the new box).  Don&#39;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&#39;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 &lt;username&gt;@&lt;oldhost&gt;://home/&lt;username&gt; /home/&lt;username&gt; --dry-run # vPihh and --stats are optional, remove --dry-run after you&#39;re sure you have everything right.</div>

<div>chmod -Rc &lt;username&gt;:&lt;username&gt; /home/&lt;username&gt; # 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 &lt;username&gt;:user /home/&lt;username&gt; # 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>