pam_access.so

Eduardo Mazolini eduardo.mazolini at gmail.com
Sun Jun 8 14:52:24 UTC 2008


Tanks worked

-----Original Message-----
From: pam-list-bounces at redhat.com [mailto:pam-list-bounces at redhat.com] On
Behalf Of decoder
Sent: domingo, 8 de junho de 2008 10:34
To: Pluggable Authentication Modules
Subject: Re: pam_access.so

Hello,
> I like when, I use ttyS0 no password are check, preference root are 
> every loged and no user are required.


You can do this very easy, without using PAM at all, at least with bash
under linux:


First, create a file /bin/bashlogin with content:

#!/bin/bash
cat /etc/motd 2>/dev/null
cd /root
[[ -e .bash_profile ]] && source .bash_profile
exec -l /bin/bash -i

This is just to display a motd and source bash profile.

Then add this line to /etc/inittab:

s0:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 ttyS0 vt100

Change the baudrate to whatever you are currently using.

When you connect to this serial tty, you will see no login prompt at 
all, but you'll get a direct root shell instead.




Best regards,


Chris




More information about the Pam-list mailing list