aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-10-04 17:28:36 +0000
committerBill Nottingham <notting@redhat.com>2004-10-04 17:28:36 +0000
commit068f2444013c4c4fcb021d1200553482b012656f (patch)
treecc7ee50cd26be6bc815b989766e37fb902f0d28c
parentded1dc363e66f9b9354efe6b2ef45084ed6db916 (diff)
downloadinitscripts-068f2444013c4c4fcb021d1200553482b012656f.tar
initscripts-068f2444013c4c4fcb021d1200553482b012656f.tar.gz
initscripts-068f2444013c4c4fcb021d1200553482b012656f.tar.bz2
initscripts-068f2444013c4c4fcb021d1200553482b012656f.tar.xz
initscripts-068f2444013c4c4fcb021d1200553482b012656f.zip
use runuser instead of su, require it
-rw-r--r--initscripts.spec2
-rwxr-xr-xrc.d/init.d/functions2
2 files changed, 2 insertions, 2 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 4d0ba99d..5783dfa4 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -16,7 +16,7 @@ Requires: util-linux >= 2.10s-11, mount >= 2.11l
Requires: bash >= 2.0, SysVinit
Requires: /sbin/ip, /sbin/arping, net-tools
Requires: /etc/redhat-release, dev
-Requires: ethtool >= 1.8-2, kernel >= 2.6, /sbin/nash
+Requires: ethtool >= 1.8-2, kernel >= 2.6, /sbin/nash, /bin/runuser
Conflicts: mkinitrd < 4.0
Conflicts: timeconfig < 3.0, ppp < 2.3.9, wvdial < 1.40-3
Conflicts: ypbind < 1.6-12, psacct < 6.3.2-12, kbd < 1.06-19, lokkit < 0.50-14
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 8bd2dba8..c11d9cf9 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -147,7 +147,7 @@ daemon() {
if [ -z "$user" ]; then
$nice initlog $INITLOG_ARGS -c "$*"
else
- $nice initlog $INITLOG_ARGS -c "su -s /bin/bash - $user -c \"$*\""
+ $nice initlog $INITLOG_ARGS -c "runuser -s /bin/bash - $user -c \"$*\""
fi
[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}