From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653644221789.tru64-unix-managers.marc@archive.invalid> From: DYadav () docklands ! vic ! gov ! au Date: Fri, 21 Dec 2001 01:04:06 +0000 To: tru64-unix-managers Subject: SUMMARY :: su - -c permission problem. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653644221789 This is a multipart message in MIME format. --=_alternative 0005E6ACCA256B29_= Content-Type: text/plain; charset="us-ascii" thanks everyone .....I seams like I have to do some environment setting manually. I'll try this after christmas ..thanks for the friends who replied. Here is one of the solution I got.. ( "Davis, Alan" APPUSER= FND_TOP= uSID= /usr/bin/su - $APPUSER -c ". $OENV; \$FND_TOP/bin/start${uSID}mgr" The important bit is the ". $OENV;" ahead of the command to execute. This sources (in ksh) the users home environment file, ensuring that the script gets the correct environment. regards, Dharmendra Yadav --------------------------------------------------------------------------------- Oracle Database Administrator/Business Analyst MELBOURNE DOCKLANDS AUTHORITY Phone : +61 3 9628 4420 Mobile : +61 412 456 477 -----Original Message----- From: DYadav@docklands.vic.gov.au [mailto:DYadav@docklands.vic.gov.au] Sent: Thursday, December 20, 2001 6:05 PM To: tru64-unix-managers@ornl.gov Subject: su - -c permission problem. >Hi wizkids, > I want to add a scripts for Oracle Application and Database >on system (Tru64 , 5.1) shutdown/startup. >These scripts works fine when I login to system as designated application user > user with no error. >But when I added following line in script at /sbin/init.d/oraprod file >( this is my linked file for statup & shutdown ) > su - -c