From 068f2444013c4c4fcb021d1200553482b012656f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 4 Oct 2004 17:28:36 +0000 Subject: use runuser instead of su, require it --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/init.d') 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" } -- cgit v1.2.1