[vox-tech] Can a username be changed?

ME vox-tech@lists.lugod.org
Sun, 9 Feb 2003 14:55:24 -0800 (PST)


Bill Kendrick said:
> On Sun, Feb 09, 2003 at 01:58:58PM -0800, ME wrote:
> <snip>
>> (Hey kids, dont try this at home)
>> # cd /home
>> # for i in * ; do chown ${i}.${i} $i ; done
>
> Actually, just changing the old username to the new one
> in /etc/group seemed to fix the group ownership problems.
>
> File ownership changed magically after doing the "usermod"
> command Foo suggestion.'

No, that was provided as an example of what kinds of problems could come
up when assumptions are made about the user's home dir != their
username...