Re: correct/ideal way to obtain root from a shell script
On Wed, Feb 10, 2010 at 11:45:20AM +0000, Jon Dowland wrote:
> On Mon, Feb 01, 2010 at 08:37:57PM +0100, Bill Allombert wrote:
> > Simply depends on the menu package which provide su-to-root
>
> We've determined that su-to-root in it's current state
> doesn't handle the disabled-root case anyway, so this
> wouldn't win me anything.
su-to-root can be configured to handle the disabled-root case,
by setting 'SU_TO_ROOT_SU=sudo' in /etc/su-to-rootrc or in the environment.
PAM does not allow to detect whether the root password is disabled, so
su-to-root cannot autodetect it (nor any other similar system).
Cheers,
--
Bill. <ballombe@debian.org>
Imagine a large red swirl here.
Reply to: