FC4: su fails in init.d script

Vasiliy Gagin vasiliy.gagin at gmail.com
Mon Jul 11 12:47:02 UTC 2005


Thank you guys,

Replacing su with runuser solves the problem.

Turning on SELinux is really deprecated my scarce knowledge of linux. :)

On 7/11/05, Markku Kolkka <markkuk at tuubi.net> wrote:
> Vasiliy Gagin kirjoitti viestissään (lähetysaika maanantai, 11.
> heinäkuuta 2005 03:19):
> > One of my scripts in /etc/rc.d/init.d directory (jboss to be
> > exact) is using "su - jboss" and is failing during start up
> > with message:
> >
> > su: Permission denied
> >
> > It works fine if I login as root and run it through "service
> > jboss start".
> >
> > I was under impression that during start up scripts in init.d
> > are run as a root. Any ideas why is it happenning?
> 
> I have encountered the same bug:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=160662
> 
> Try the "runuser" command as a workaround.
> Add your experiences as comments to the bug.
> 
> --
>  Markku Kolkka
>  markku.kolkka at iki.fi
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>




More information about the fedora-list mailing list