Fajar Priyanto
2007-06-04 16:09:19 UTC
Hi all,
I'm trying to show a demo on how to modify PAM so that /etc/nologin is bypass
by ssh.
I have modified /etc/pam.d/sshd:
#%PAM-1.0
auth include common-auth
#auth required pam_nologin.so
account include common-account
password include common-password
session include common-session
When I try to ssh into the PC, I get logged in, but immediately got kicked
out. In /var/log/messages I see this:
sshd : User fajar is not allowed because /etc/nologin exists
I have 'grep -r nologin /etc
And have commented some of the entries in apparmor too, but still cannot
login. I once succeeded in bypassing /etc/nologin, but I forget how.
Thank you very much,
I'm trying to show a demo on how to modify PAM so that /etc/nologin is bypass
by ssh.
I have modified /etc/pam.d/sshd:
#%PAM-1.0
auth include common-auth
#auth required pam_nologin.so
account include common-account
password include common-password
session include common-session
When I try to ssh into the PC, I get logged in, but immediately got kicked
out. In /var/log/messages I see this:
sshd : User fajar is not allowed because /etc/nologin exists
I have 'grep -r nologin /etc
And have commented some of the entries in apparmor too, but still cannot
login. I once succeeded in bypassing /etc/nologin, but I forget how.
Thank you very much,
--
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
http://linux2.arinet.org
11:09pm up 17:09, 2.6.18.2-34-default GNU/Linux
Let's use OpenOffice. http://www.openoffice.org
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
http://linux2.arinet.org
11:09pm up 17:09, 2.6.18.2-34-default GNU/Linux
Let's use OpenOffice. http://www.openoffice.org