From: "Mark Shields" <laebshade@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] root can't login on console, but can ssh...
Date: Fri, 14 Sep 2007 13:07:15 -0400 [thread overview]
Message-ID: <642958cc0709141007l4fc848adp4c8b427d6157d09b@mail.gmail.com> (raw)
In-Reply-To: <BRAKAXRPmcarcR4ZDgC0000074b@mx1.lockdownnetworks.com>
[-- Attachment #1: Type: text/plain, Size: 3346 bytes --]
On 9/13/07, Daevid Vincent <daevid@daevid.com> wrote:
>
> I've posted this about two months ago without any replies. I've been
> googling and trying things, but still can't get this to work like it used
> to.
>
> I simply want root to be able to login from console (tty[1-6]) or ssh
> (pts/[0-9]) without a password. Currently ssh does work fine. It's only
> the
> physical console that doesn't.
>
> This WAS working perfectly, then PAM or some other ebuild "broke it" on
> me.
>
> Just for sanity, I even assigned root a password, I now get a "Password"
> prompt, but it STILL can't login. (positive I'm typing it right) It says
> "Login incorrect".
>
> -----Original Message-----
> From: Daevid Vincent [mailto:daevid@daevid.com]
> Sent: Tuesday, July 17, 2007 3:47 PM
> To: gentoo-user@lists.gentoo.org
> Subject: [gentoo-user] root can't login on console, but can ssh...
>
> I have a LAMP development VMWare setup so that I can login as root sans
> password.
>
> This was working fine until something recently changed that.
> It doesn't even prompt for the password, it just timesout after x
> seconds.
>
> Oddly I can ssh in as root (without the password as expected).
>
> I have my "daevid" account without password and that logs in fine on the
> console and ssh.
>
> I can circumvent this behaviour by logging in as 'daevid', then 'sudo su
> -' (which doesn't prompt for pw either), but I'd like it to work the way
> it did.
>
> Perhaps it was some PAM thing? Or login.defs? Or in pam.d/ ?
>
> LAMP pam.d # cat login
> #%PAM-1.0
>
> auth required pam_securetty.so
> auth required pam_tally.so file=/var/log/faillog onerr=succeed
> no_magic_root
> auth required pam_shells.so
> auth required pam_nologin.so
> auth include system-auth
>
> account required pam_access.so
> account include system-auth
> account required pam_tally.so deny=0 file=/var/log/faillog
> onerr=succeed no_magic_root
>
> password include system-auth
>
> session required pam_env.so
> session optional pam_lastlog.so
> session optional pam_motd.so motd=/etc/motd
> session optional pam_mail.so
>
> # If you want to enable pam_console, uncomment the following line
> # and read carefully README.pam_console in /usr/share/doc/pam*
> #session optional pam_console.so
>
> session include system-auth
>
>
> LAMP ~ # cat /etc/securetty
> # /etc/securetty: list of terminals on which root is allowed to login.
> # See securetty(5) and login(1).
> console
> pts/0
> pts/1
> pts/2
> pts/3
> pts/4
> pts/5
> pts/6
> pts/7
> pts/8
> vc/0
> vc/1
> vc/2
> vc/3
> vc/4
> vc/5
> vc/6
> vc/7
> vc/8
> vc/9
> vc/10
> vc/11
> vc/12
> tty0
> tty1
> tty2
> tty3
> tty4
> tty5
> tty6
> tty7
> tty8
> tty9
> tty10
> tty11
> tty12
> tts/0
> ttyS0
>
>
> ÐÆ5ÏÐ
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>
Check out /etc/securetty (man securetty). There should be at least one
uncommented entry listing 'tty1' if you want to be able to log in with just
the first virtual terminal, or if you want root to be allowed on all virtual
terminals, add tty1 through tty12.
--
- Mark Shields
[-- Attachment #2: Type: text/html, Size: 4640 bytes --]
next prev parent reply other threads:[~2007-09-14 17:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-13 19:43 [gentoo-user] root can't login on console, but can ssh Daevid Vincent
2007-09-13 20:07 ` Philip Webb
2007-09-14 11:54 ` Hans-Werner Hilse
2007-09-14 17:07 ` Mark Shields [this message]
2007-09-14 22:52 ` Daevid Vincent
2007-09-15 7:53 ` Mick
-- strict thread matches above, loose matches on Subject: below --
2007-07-17 22:46 Daevid Vincent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=642958cc0709141007l4fc848adp4c8b427d6157d09b@mail.gmail.com \
--to=laebshade@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox