You are not logged in.

#1 2009-05-23 15:56:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

change a username (premissions/groups etc.) under Gnome [SOLVED]

I'd like to alter some user names on my system, but want to do it without messing up existing permissions/groups.  I want to retain the currently assigned UIDs/GIDs.

Is it as simple as:

# usermod -l newName oldName
# groupmod -n newName oldName

Manually rename the /home/oldName to /home/newName

Am I missing anything?

Last edited by graysky (2009-05-24 09:23:31)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2009-05-24 05:14:19

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: change a username (premissions/groups etc.) under Gnome [SOLVED]

Pretty much -- make sure the user isn't logged in when you do it. It won't break anything permanently, but it can be a pain. Don't forget to update the users home directory to the new path if you're going to rename it:

usermod -d /home/newName newName

Last edited by fukawi2 (2009-05-24 05:14:37)

Offline

#3 2009-05-24 09:23:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: change a username (premissions/groups etc.) under Gnome [SOLVED]

Thanks for the reply, the four step procedure worked great!  I wrote it up on the wiki to help others.
http://wiki.archlinux.org/index.php/Change_username


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB