Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.