[lug] Migrating Ubuntu User Name
stimits at comcast.net
stimits at comcast.net
Sun Oct 18 15:12:55 MDT 2015
For various reasons I need to rename user ubuntu on Ubuntu 14.04LTS to a new name, preserving original UID/GID. Technically I should be able to do this with "usermod", but the command will refuse to run because the original home directory is in use (user ubuntu must be used to do the usermod...catch 22, this forces it to be in use at all times during usermod).
If I've made an exact recursive copy of /home/ubuntu to /home/newname, would a simple edit of /etc/passwrd changing each instance of "ubuntu" to "newname" work? Or is there some catch which would leave the system messed up after this?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20151018/9619f841/attachment.html>
More information about the LUG
mailing list