On Mon, 23 Apr 2007 16:42:32 -0400 Joey Hess <[EMAIL PROTECTED]> wrote: > update-alternatives --set libgksu-gconf-defaults \ > /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo > update-gconf-defaults
I have attached the diff to casper's 10adduser script which sets up the live user account to make kdesu and su-to-root work. But these are changes to the user account, not under /etc, as I suspect you need. The su-to-root change won't work without the open bug against menu being resolved. Bill included a new su-to-root script as an attachment to that bug if you want to test his change so far. Ben -- ,-. nSLUG http://www.nslug.ns.ca [EMAIL PROTECTED] \`' Debian http://www.debian.org [EMAIL PROTECTED] ` [ gpg 395C F3A4 35D3 D247 1387 2D9E 5A94 F3CA 0B27 13C8 ] [ pgp 7F DA 09 4B BA 2C 0D E0 1B B1 31 ED C6 A9 39 4F ]
=== modified file 'scripts/casper-bottom/10adduser' --- scripts/casper-bottom/10adduser 2007-02-13 17:28:03 +0000 +++ scripts/casper-bottom/10adduser 2007-04-21 20:25:04 +0000 @@ -64,7 +64,20 @@ fi done else # We are in debian :-) - echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> /root/etc/sudoers + echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> /root/etc/sudoers + chroot /root sudo -u "$USERNAME" sh -c "echo 'SU_TO_ROOT_SU=sudo' >>/home/$USERNAME/.su-to-rootrc" + chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/gksu/sudo-mode true + chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/gksu/display-no-pass-info false + chroot /root sudo -u "$USERNAME" sh -c "umask 0077 && mkdir -p /home/$USERNAME/.kde/share/config && cat >/home/$USERNAME/.kde/share/config/kdesurc" <<EOF +[super-user-command] +super-user-command=sudo +EOF + if [ -f /root/usr/share/apps/konsole/sumc.desktop ]; then + chroot /root sudo -u "$USERNAME" sh -c "umask 0077 && mkdir -p /home/$USERNAME/.kde/share/apps/konsole && sed -e's/Exec=su.*$/Exec=sudo mc -c/' /usr/share/apps/konsole/sumc.desktop >/home/$USERNAME/.kde/share/apps/konsole/sumc.desktop" + fi + if [ -f /root/usr/share/apps/konsole/su.desktop ]; then + chroot /root sudo -u "$USERNAME" sh -c "umask 0077 && mkdir -p /home/$USERNAME/.kde/share/apps/konsole && sed -e's/Exec=su.*$/Exec=sudo -i/' /usr/share/apps/konsole/su.desktop >/home/$USERNAME/.kde/share/apps/konsole/su.desktop" + fi fi fi