[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
  Web www.spinics.net

Re: pam_access.so

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:

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,


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Pam-list mailing list

[Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

Add to Google Powered by Linux