diff options
author | Bill Nottingham <notting@redhat.com> | 2001-02-16 19:18:34 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-02-16 19:18:34 +0000 |
commit | d62ddfd7777bb0e15c9a5841bd86c0df28026c60 (patch) | |
tree | 81f7ace1cc32025366909666c29655196d58433f | |
parent | 83f6eaa0e3224b6c84e356faa016022b53058ebd (diff) | |
download | initscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.tar initscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.tar.gz initscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.tar.bz2 initscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.tar.xz initscripts-d62ddfd7777bb0e15c9a5841bd86c0df28026c60.zip |
use 'su -' , not just 'su' (#26894)
-rwxr-xr-x | rc.d/init.d/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index b8303f56..ffed07c0 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -132,7 +132,7 @@ daemon() { if [ -z "$user" ]; then $nice initlog $INITLOG_ARGS -c "$*$bg" else - $nice initlog $INITLOG_ARGS -c "su $user -c \"$*$bg\"" && success $"$base startup" || failure $"$base startup" + $nice initlog $INITLOG_ARGS -c "su - $user -c \"$*$bg\"" && success $"$base startup" || failure $"$base startup" fi [ $? = 0 ] && success $"$base startup" || failure $"$base startup" } |