tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Zack Ellis <zellis () hccanet ! com>
To: tru64-unix-managers
Subject: Effective user id
Date: Mon, 26 Oct 1998 18:15:48 +0000	[thread overview]
Message-ID: <96078724212098.tru64-unix-managers.marc@archive.invalid> (raw)

Thanks for such a rapid response!

In particular.
Skeate, Scott B <scott.b.skeate@lmco.com>
Balaji Chandrasekar <digital@astro.ocis.temple.edu>
Salvador Ramirez <sram@profc.udec.CL>


Here are the suggestions:

su - oracle << eof
sqldba lmode=t << eof1
connect internal
shutdown (or startup)
exit
eof1
eof

su - <username> -c <script to run>


Original message:
 Dear managers,
> 
> Is there a way to change your effective user id without using su? Using
> su within a script bounces you out to a prompt.
> 
> I need to execute a database shutdown command, as root, but you must be
> oracle for it to run without a password prompt.
> 
> This is run from within a Korn shell script.
> 
> Thanks in advance

             reply	other threads:[~1998-10-26 18:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-26 18:15 Zack Ellis [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-10-26 18:02 Effective user ID Zack Ellis
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox