Thread: Renaming Self
had question myself , noticed of information http://ubuntuforums.org/showthread.php?t=64021 little inaccurate/out of date.
anyway, gnome doesn't allow user rename through ui. however, can accomplished entering following commands (where <oldname> current username going in , <newname> desired new username) terminal (either applications->accessories->terminal or 1 provided in alternate sessions login screen):
this performs actual username switch , moves home directory.code:sudo usermod -l <newname> -d /home/<newname> -m <oldname>
this should performed well, rename corresponding user group.code:sudo groupmod -n <newname> <oldname>
this update of files contain static links old home directory (such bookmarks under "places") new home directory.code:grep -l "home/<oldname>" -r . | xargs sed -i.bak 's|home/<oldname>|home/<newname>|'
(it's better idea terminal login screen desktop isn't running simultaneously, although did last 1 inside gnome , haven't had trouble.)
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Renaming Self
Ubuntu
Comments
Post a Comment