<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 19, 2014 at 2:36 PM, David <span dir="ltr"><<a href="mailto:bouncingcats@gmail.com" target="_blank">bouncingcats@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 19 May 2014 14:38, Rustom Mody <<a href="mailto:rustompmody@gmail.com">rustompmody@gmail.com</a>> wrote:<br>


><br>
> The problem is that the numerical id of the (my) username is different in<br>
> the two systems. In DebOld the id is 1001 in Deb64 it is 1000.<br>
<br>
</div>The usual way to do this is to use the usermod command -u and -g to<br>
change UID and GID for all the /etc database files and files in the<br>
users home directory, . This is what you should have done on the Deb64<br>
system. Read the man page warnings first. So you could undo what you<br>
did and then run:<br>
<br>
  # usermod -u <newu> -g <newg> <username><br></blockquote><div><br></div><div>Heh! So I learnt something -- usermod.<br><br></div><div>I finally got it running by discovering a rogue asoundrc.<br></div>

<div>Renamed that and now its working.<br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Just make sure that you dont use a <new> value that collides with one<br>
that was already in use in that database. Specific example, dont do<br>
'usermod -u 1001 -g 1001 <username>' on the Deb64 system if 1001 is<br>
already in use on the Deb64 system.<br>
<br>
(all examples are untested)<br>
<br>
You can see the numeric values with 'ls -n'<br>
<br>
Check /etc/passwd and /etc/groups, and check first with<br>
<br>
  # find / -user <newu><br>
  # find / -group <newg><br>
<br>
The <...> values can be symbolic or numeric.<br>
<br>
To change the ownership of files outside of the home directory you can<br>
either use 'find' like:<br>
<br>
  # find <topdir> -user <oldu> -group <oldg> -execdir chown -c<br>
<newu>:<newg> '{}' \;<br>
<br>
Or you can use 'chown' recursively like<br>
<br>
  # cd <topdir> && chown -c -R --from=<oldu>:<oldg> <newu>:<newg> *<br>
</blockquote></div><br></div><div class="gmail_extra">Neat commands. Will stash them away!<br>
</div></div>