Skip to main content

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):

code:
sudo usermod -l <newname> -d /home/<newname> -m <oldname>
this performs actual username switch , moves home directory.

code:
sudo groupmod -n <newname> <oldname>
this should performed well, rename corresponding user group.

code:
grep -l "home/<oldname>" -r . | xargs sed -i.bak 's|home/<oldname>|home/<newname>|'
this update of files contain static links old home directory (such bookmarks under "places") new home directory.

(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

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

Rasperry Wifi LAN Controller - Raspberry Pi Forums

Unlock car with bluetooth and car key