Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

UPDATE

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.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.