tags 464642 + patch
thanks
Here is the patch.
diff -ur dpsyco-1.0.34.orig/base/src/update-dpsyco-users dpsyco-1.0.34/base/src/update-dpsyco-users
--- dpsyco-1.0.34.orig/base/src/update-dpsyco-users 2006-07-19 21:02:18.000000000 +0300
+++ dpsyco-1.0.34/base/src/update-dpsyco-users 2008-04-06 10:32:11.000000000 +0300
@@ -59,7 +59,7 @@
echo "THIS SHOULD NEVER HAPPEN, error in update script."
elif ! echo "$FUSERS" | grep "^$RU$" > /dev/null 2>&1 ; then
echo "dpsyco is deleting user $RU (moving $RU to $RU.disabled)"
- if [ "$SUDO_USER" == "$RU" -o "$USER" == "$RU" ] ; then
+ if [ "$SUDO_USER" = "$RU" -o "$USER" = "$RU" ] ; then
echo "The script does not kick out any process that the admin runs."
echo "FIX THIS MANUALLY:"
echo "Log out the user and kill all its processes."
diff -ur dpsyco-1.0.34.orig/base/src/update-dpsyco-users-shell dpsyco-1.0.34/base/src/update-dpsyco-users-shell
--- dpsyco-1.0.34.orig/base/src/update-dpsyco-users-shell 2006-07-19 21:02:18.000000000 +0300
+++ dpsyco-1.0.34/base/src/update-dpsyco-users-shell 2008-04-06 10:31:57.000000000 +0300
@@ -50,7 +50,7 @@
else
# User should not have shell access.
if ! grep "^$U:X:" $SHDF > /dev/null 2>&1 ; then
- if [ "$SUDO_USER" == "$U" -o "$USER" == "$U" ] ; then
+ if [ "$SUDO_USER" = "$U" -o "$USER" = "$U" ] ; then
echo "Can not remove the password for the user you are logged in as."
echo "So you have to do that manually by typing:"
echo " usermod -p X $U"
@@ -63,7 +63,7 @@
else
# User should not have shell access.
if ! grep "^$U:x:" $SHDF > /dev/null 2>&1 ; then
- if [ "$SUDO_USER" == "$U" -o "$USER" == "$U" ] ; then
+ if [ "$SUDO_USER" = "$U" -o "$USER" = "$U" ] ; then
echo "Can not remove the password for the user you are logged in as."
echo "So you have to do that manually by typing:"
echo " usermod -p x $U"
diff -ur dpsyco-1.0.34.orig/src/update-twinspot-users dpsyco-1.0.34/src/update-twinspot-users
--- dpsyco-1.0.34.orig/src/update-twinspot-users 2006-01-28 22:46:03.000000000 +0200
+++ dpsyco-1.0.34/src/update-twinspot-users 2008-04-06 10:32:40.000000000 +0300
@@ -63,7 +63,7 @@
echo "THIS SHOULD NEVER HAPPEN, error in update script."
elif ! echo "$FUSERS" | grep "^$RU$" > /dev/null 2>&1 ; then
echo "Del user $RU"
- if [ "$SUDO_USER" == "$RU" -o "$USER" == "$RU" ] ; then
+ if [ "$SUDO_USER" = "$RU" -o "$USER" = "$RU" ] ; then
echo "The script does not kick out any process that the admin runs."
echo "FIX THIS MANUALLY:"
echo "Log out the user and kill all its processes."