On Mon, Apr 23, 2007 at 08:22:49AM -0300, Ben Armstrong <[EMAIL PROTECTED]> was heard to say: > This isn't merely a matter of convenience for Debian-live. The live CDs > produced by live-helper use casper which sets no root password. Instead > the live user uses sudo. Thus, the aptitude menu entry that starts aptitude > in a terminal as the current user is broken. When root is required, the user > is prompted for the root password by do_su_to_root(). Of course, since there > is no root password, there is nothing the user can do to proceed. > > As Matt Zimmerman suggested, this should really be a config option. So far, > we have patched Debian's casper to set the appropriate config options for > kdesu and gksu, and the 'menu' package's su-to-root wrapper (see #410875) to > all use sudo. We only need this problem with aptitude to be resolved for > all standard sytem utilities requiring root to work properly when launched > from the menu on a Debian live CD.
I've added a patch in darcs that lets you set Aptitude::Get-Root-Command to "su", "sudo", or something like "sudo:/usr/bin/gksudo --" where "sudo:" means that it'll use the sudo "protocol" (pass the command to run as the remaining arguments, rather than using -c). This won't make it work with gksudo, however; gksudo redirects stdin from /dev/null unconditionally (bug filing in progress), which unsurprisingly causes aptitude to wreck the terminal and then hang. Maybe something like "sudo:/usr/bin/gksudo -- x-terminal-emulator -e" would do what you want for the time being. Daniel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]