Re: How to detect Debian systems w/o root passwd ?
On Fri, Sep 04, 2009 at 12:08:05PM -0700, Steve Langasek wrote:
> On Fri, Sep 04, 2009 at 08:10:46PM +0200, Bill Allombert wrote:
> > > I'd say that reading the value of passwd/root-login debconf template
> > > is the safest way. If you get "false", then the system is a sudo-only system.
> > I assume the code below should work ?
> > debconf-show passwd 2>/dev/null |grep -q 'root-login: false'
> > > Of course, that will tell you what you need only when the rootless
> > > system has been installed by choosing the appropriate option in D-I.
> > Is it possible to get this information from PAM instead?
> Nope, PAM will only tell you whether an authentication attempt succeeds;
> everything else is deliberately black box.
Even by reading files in /etc/pam.d/ ?
Imagine a large red swirl here.