🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.slackware
Article #16

Re: Moving to Slackware 15, having troubles with PAM

#16
From: Mike Small
Date: Thu, 29 Oct 2026 17:16
44 lines
2681 bytes
Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes:

> Well, that /was/ useful, and I think that I've fixed my problem.
> At least, I've managed to stop the privilege escalation, and
> can look into the issue that lead to it at my convenience.
>
> Mike's advice helped centre me, and, in expressing the problem
> details, I had a thought: As all the problems seem to centre
> around the root user's password, what would happen if I
> /changed/ the password?
>
> So, I logged on as root (no password prompt), issued the
> passwd(1) command, and changed root's password. Then I
> logged off.
>
> Back at the login prompt, I tried to log in as root, and
> lo and behold, login wanted the root password. I gave it
> the new password, and got in properly.
>
> I tested "su - root" from an unprivileged user, and, again
> got the (previously missing) password prompt.
>
> So, my guess is that, somehow, the /etc/shadow entry for
> root wasn't properly formatted, when I copied it from the
> 14.2 shadow file.
>
> Anyway, it's fixed. Thanks to all.

Nice. Glad you've closed that up.

But just to be paranoid, have you tried mistyping the root password? I'm
concerned that if su (and pam_unix?) failed before at authorizing
against shadow, and speculating that its step 2 might have been something
like, "well, proceed to next authorization; oh, there is no other so let
them in," then failing by wrong password might go down the same path
with the same result.

I don't understand PAM well, but it sounded like the pam_deny module was
very important to have active to make sure problems fail closed. I'm
wondering if there was and still is something wrong with your system
with that.

Regards,
Mike Sm.
Technical Details
Message-ID: <jpkecd85sww.fsf@panix5.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.2602:f977:0:1::5!not-for-mail
References: <11btoef$2pfoe$1@dont-email.me> <jpk8q3hf954.fsf@panix5.panix.com> <11bvqpt$3ehks$1@dont-email.me> <11bvs48$3gi15$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.2602:f977:0:1::5!not-for-mail
From: Mike Small <smallm@panix.com>
Newsgroups: alt.os.linux.slackware
Subject: Re: Moving to Slackware 15, having troubles with PAM
Date: Thu, 29 Oct 2026 13:16:15 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <jpkecd85sww.fsf@panix5.panix.com>
References: <11btoef$2pfoe$1@dont-email.me> <jpk8q3hf954.fsf@panix5.panix.com>
	<11bvqpt$3ehks$1@dont-email.me> <11bvs48$3gi15$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader2.panix.com; posting-host="2602:f977:0:1::5";
	logging-data="13664"; mail-complaints-to="abuse@panix.com"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)
Cancel-Lock: sha1:r4yJzmt/dKDZJCbTL1MshqWvhUk=