Why the service which uses daemon function from `/etc/init.d/function` throws failure from switching from root to any other user ?

Solution Verified - Updated -

Issue

  • The service which uses daemon function from /etc/init.d/function throws failure from switching from root to any other user ?
    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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.