Mailinglist Archive: opensuse (2040 mails)

< Previous Next >
[opensuse] Howto by pass ssh /etc/nologin
  • From: Fajar Priyanto <fajarpri@xxxxxxxxxx>
  • Date: Mon, 4 Jun 2007 23:09:19 +0700
  • Message-id: <200706042309.20475.fajarpri@xxxxxxxxxx>
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,
-- 
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
< Previous Next >
Follow Ups