I changed a user's login by doing this:
$ usermod old_login -l new_login
I also wanted to move his home to reflect his new username, but it wouldn't let me, so I just rebooted. But now after I login, the screen blinks and I'm redirected back to the login screen. And that's what happens when you cannot access your home, that's why I think it has something to do with his home being encrypted.
How do I fix this?
I'm on a Ubuntu 12 Virtualbox VM.
Turns out it did change the home in /etc/passwd, but it didn't move the files, so there was no home for the user.
The solution was to start in recovery mode and do this:
$ mount -o remount,rw / $ usermod new_login -d /home/old_login -m $ reboot
So now I'm at back at square 1, because the home still has the old name.