Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to join our Ubuntu 10.04 server to the Windows domain and I ended up editing the pam.d configuration files. My aim was to have domain users log into the Ubuntu server with their domain accounts in order to access some applications instead of creating new Unix users each time.

My system admin says the join was successful to the domain. Now I have no way of logging into the sever.

Is there a way I can undo everything and get the server back to the original login using the local account?

I will also appreciate if someone pointed me to some configuration that actually worked - I am still willing to try and make it work.

share|improve this question

You need to boot your Ubuntu server in rescue mode then you can revert back to default settings by manually editing files. Refer this page for how to boot into rescue mode after booting in to rescue mode, you need to check "/etc/nsswitch.conf", "/etc/pam.d/common-account" this files are important for log in then change those file as default with help of other ubuntu server in your end.

also you can use live cd and do the required changes

the default nsswitch.conf file available in "/usr/share/base-files/nsswitch.conf"

share|improve this answer
Thanks was able to fix this using a live cd. I copied all the files in the pam.d folder into my /etc/pam.d/ folder. Now I am able to log in. – nash Dec 20 '12 at 10:16
and thanks for pointing out the location of the default files – nash Dec 20 '12 at 10:24

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.