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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content