From 83c877189de31d5ba1694c12be078d0d2c277b52 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 7 Apr 2011 12:39:10 +0200 Subject: [PATCH] Revert password removal for root and user It will require some additional work with ConsoleKit... --- rpm_spec/core-appvm.spec | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rpm_spec/core-appvm.spec b/rpm_spec/core-appvm.spec index 9b97616c..1a97cb56 100644 --- a/rpm_spec/core-appvm.spec +++ b/rpm_spec/core-appvm.spec @@ -48,17 +48,12 @@ The Qubes core files for installation inside a Qubes AppVM. %pre -# Remove password for root, so PolicyKit will not ask for it -usermod -p '' root - if [ "$1" != 1 ] ; then -# remove user password if this is upgrade -usermod -p '' user # do this whole %pre thing only when updating for the first time... exit 0 fi -adduser -p '' --create-home user +adduser --create-home user su user -c 'mkdir -p /home/user/.gnome2/nautilus-scripts' su user -c 'ln -s /usr/lib/qubes/qvm-copy-to-vm2.gnome /home/user/.gnome2/nautilus-scripts/"Copy to other AppVM"' su user -c 'ln -s /usr/bin/qvm-open-in-dvm2 /home/user/.gnome2/nautilus-scripts/"Open in DisposableVM"'