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

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.

This issue is not specific to su-to-root: gksu has the same problem:
you have to change the gconf key /apps/gksu/sudo-mode to use sudo mode.
However, once you have done that, su-to-root -X will also work, since
it will call gksu.

In the case of text-mode su-to-root, maybe su-to-root can call
gconftool -g /apps/gksu/sudo-mode
to see whether it should use sudo instead of su.

Bill. <ballombe@debian.org>

Imagine a large red swirl here. 

Reply to: