Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I made some changes to ~/.pam_environment but I made a mistake. There's a problem with the file syntax now and I can't log in. My home directory is encrypted and I don't have a backup user account to use. I've done some research on mounting it from a Live CD, but it seems to be read only.

Is there a way to force it to skip that file or to mount the file system in read/write mode?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

"That file" (~/.pam_environment) is unavailable until you mount and decrypt you8r home directory!

Once you've booted a Live CD, you can gain read/write access with mount -o remount,rw <device> command, then follow these instructions.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.