Even if you're root the file has to have some execute permission set.
Just run chmod o+x script-name and you should be ok.
On Wed, Mar 17, 1999 at 10:05:20PM -0400, LDJ wrote:
> I have MYSQL set up to start automatically on boot by placing the
> mysql.server script (shipped with package) in my /etc/rc.d/init.d/
> directory and changed the name to mysql and I have symlinks in rc2.d and
> rc3.d, they are called S90mysql.
> When my system boot up it tries to execute the S90mysql file but I get an
> error saying permission denied. I can't figure out why. I am root. The
> script tells mysql to start as root:
> mysql_daemon_user=root # Run mysqld as this user.
> export PATH
> Can anyone tell me what I have done wrong?