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. -- 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