Why the service which uses daemon function from `/etc/init.d/function` throws failure from switching from root to any other user ?
Issue
- The
servicewhich usesdaemon functionfrom/etc/init.d/functionthrows failure from switching fromrootto any otheruser?
226 # And start it up.
227 if [ -z "$user" ]; then
228 $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
229 else
230 $nice runuser -s /bin/bash - $user -c "$corelimit >/dev/n ull 2>&1 ; $*"
Environment
- Red Hat Enterprise Linux 5.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
