Re: su - user -c "file" asks for password



* 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.
.



Relevant Pages

  • su - user -c "file" asks for password
    ... I am trying to find the magic config parameter which sorts out my ... I'm using Oracle on Linux Red Hat and wish to start the various ... both from inside a shell script and manually, ... oracle user password. ...
    (comp.os.linux.misc)
  • Re: su - user -c "file" asks for password
    ... I am trying to find the magic config parameter which sorts out my ... I'm using Oracle on Linux Red Hat and wish to start the various ... both from inside a shell script and manually, ... oracle user password. ...
    (comp.os.linux.misc)
  • Re: Reboot Loop After Chkdsk
    ... now the system is stuck in a reboot loop. ... One application runs on SQL. ... The other runs on Oracle. ... Check your SBS with the SBS Best Practices Analyzer ...
    (microsoft.public.windows.server.sbs)
  • Re: Periodic restart DB recommended or no ?
    ... I have found that if servers are not rebooted (once Windows ... automatic reboot job was not working), Oracle as well as other ... On HP UNBIX Servers, this weekly reboot is not requied, servers are ... Puget Sound Oracle Users Group ...
    (comp.databases.oracle.server)
  • Re: [SLE] Test HDD
    ... borked data on the hard drive, or a bad sector. ... Oracle, it would reboot the computer. ...
    (SuSE)