[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to detect Debian systems w/o root passwd ?



On Fri, Sep 04, 2009 at 11:03:51PM +0200, Bill Allombert wrote:
> > > 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/ ?

Those files are no different between a sudo-only system and a system with a
root password.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature


Reply to: