aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-01-25 05:23:40 +0000
committerBill Nottingham <notting@redhat.com>2002-01-25 05:23:40 +0000
commit590aae606e2a4cb466d7cc4cd63222172d9fdeff (patch)
treeea75679247901de03bd50a9894e2db42c354b983
parent543c9522feba2bff84f54c1d214d74f20ea0b5fd (diff)
downloadinitscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.tar
initscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.tar.gz
initscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.tar.bz2
initscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.tar.xz
initscripts-590aae606e2a4cb466d7cc4cd63222172d9fdeff.zip
make sure su calls bash (#55288)
-rwxr-xr-xrc.d/init.d/functions2
-rw-r--r--sysconfig/network-scripts/network-functions2
2 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index d8bbea80..f71954a9 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -138,7 +138,7 @@ daemon() {
if [ -z "$user" ]; then
$nice initlog $INITLOG_ARGS -c "$*"
else
- $nice initlog $INITLOG_ARGS -c "su - $user -c \"$*\""
+ $nice initlog $INITLOG_ARGS -c "su -s /bin/bash - $user -c \"$*\""
fi
[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 4d937ac5..e9a0a630 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -71,7 +71,7 @@ do_netreport ()
OWNER=`ls -l $i | awk '{ print $3 }'`
if [ "`id -u`" = "0" ]; then
- su $OWNER -c "kill -SIGIO $i >/dev/null 2>&1 || rm -f $i >/dev/null 2>&1" > /dev/null 2>&1
+ su -s /bin/bash $OWNER -c "kill -SIGIO $i >/dev/null 2>&1 || rm -f $i >/dev/null 2>&1" > /dev/null 2>&1
else
kill -SIGIO $i >/dev/null 2>&1 || rm -f $i >/dev/null 2>&1
fi