[Debian-live-changes] r1341 - in dists/trunk/live-initramfs: doc
scripts/live-bottom
Daniel Baumann
daniel at alioth.debian.org
Mon May 7 07:54:38 UTC 2007
Author: daniel
Date: 2007-05-07 07:54:37 +0000 (Mon, 07 May 2007)
New Revision: 1341
Modified:
dists/trunk/live-initramfs/doc/ChangeLog
dists/trunk/live-initramfs/scripts/live-bottom/10adduser
Log:
Modified: dists/trunk/live-initramfs/doc/ChangeLog
===================================================================
--- dists/trunk/live-initramfs/doc/ChangeLog 2007-05-07 07:42:03 UTC (rev 1340)
+++ dists/trunk/live-initramfs/doc/ChangeLog 2007-05-07 07:54:37 UTC (rev 1341)
@@ -1,3 +1,9 @@
+2007-05-07 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live-bottom/10adduser:
+ - Applied patch from Ben Armstrong <synrg at debian.org> to write
+ $HOME/.su-to-rootrc file.
+
2007-05-06 Daniel Baumann <daniel at debian.org>
* Merging patches from casper 1.81+debian-4, see ChangeLog.casper.
Modified: dists/trunk/live-initramfs/scripts/live-bottom/10adduser
===================================================================
--- dists/trunk/live-initramfs/scripts/live-bottom/10adduser 2007-05-07 07:42:03 UTC (rev 1340)
+++ dists/trunk/live-initramfs/scripts/live-bottom/10adduser 2007-05-07 07:54:37 UTC (rev 1341)
@@ -65,6 +65,22 @@
done
else # We are in debian :-)
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
More information about the Debian-live-changes
mailing list