I have a user with a username of jsmith who was recently married and wants her login to reflect her new married name: jdoe. I understand that usermod will make the changes but I am concerned about implications that I haven't thought of. I want to do the following:
chown jdoe:jdoe /home/jdoe
usermod -l jdoe -m /home/jdoe jsmith cp -rp /home/jsmith/* /home/jdoe
The user belongs to a common group so there should be no GID issues and I've run find commands with no results looking for files owned by her GID.
From my experimentation: The usermod command changes ownership of all files with the UID of jsmith to jdoe. There are no files with her GID so that is moot. I'll have to go in manually to /etc/group and change her username in any group where she is a member.
Essentially my questions are these: Will /etc/shadow and /etc/gshadow need to be altered by hand? Am I missing anything?