You are not logged in.
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 packages • Zsh and other configs
Offline
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)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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 packages • Zsh and other configs
Offline