Re: su - user -c "file" asks for password
- From: SINNER <99nesorjd@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Mar 2007 23:09:38 GMT
* astrosteve wrote in comp.os.linux.misc:
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?
What happens if you dont use -c?
$ su - oracle
$ /u01/app/oracle/orahome/bin/lsnrctl status
--
David
Executive ability is prominent in your make-up.
.
- References:
- su - user -c "file" asks for password
- From: astrosteve
- su - user -c "file" asks for password
- Prev by Date: DOM is supported in linux?
- Next by Date: Re: mplayer confusion -- no gui?
- Previous by thread: su - user -c "file" asks for password
- Next by thread: searching big gzipped files
- Index(es):
Relevant Pages
|