On Sun, 2005-07-10 at 20:19 -0400, Vasiliy Gagin wrote: > 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? > Is it SELinux trick again? So SELinux if I'm blaming you for no reason. Look in the logfiles to see if it's an SELInux issue (/var/log/messages if you're not running auditd, /var/log/audit/audit.log otherwise). I think most of the "Standard" initscripts use "runuser" rather than "su" for this purpose btw. Paul. -- Paul Howarth <paul@xxxxxxxxxxxx>