su - user -c "file" asks for password



Hi guys & gals,

I am trying to find the magic config parameter which sorts out my
problem as follows :

I'm using Oracle on Linux Red Hat and wish to start the various
components automatically on reboot.
I've done all the /etc/rc3.d/S99oracle stuff and the same set up works
fine on all the other boxes I've installed it on. However, on this
particular box there is obviously a config problem. When I run a
command like this with the root user
su - oracle -c "/u01/app/oracle/orahome/bin/lsnrctl status"
both from inside a shell script and manually, I am prompted for the
oracle user password. Normally, as you probably already know, an 'su
-' from root does not require a password. This does not happen on any
other system I have set this up on and I am at a loss as to why it's
happening here.
There is obviously a minor config problem but it stops the scripts
from running and therefore I cannot get Oracle to start up on reboot.
I've looked on the Web but no answers were forthcoming.

Can anyone help me?

Thanks in anticipation of a solution....

Steve

.



Relevant Pages