* running a command from root as another user
@ 1997-04-20 22:18 David Bremer
0 siblings, 0 replies; only message in thread
From: David Bremer @ 1997-04-20 22:18 UTC (permalink / raw)
To: tru64-unix-managers
I can't help thinking that I'm going about this all wrong - but anyway
....
I'm trying to smooth out the process of adding users to a database.
Process:
Add unix account with /usr/sbin/adduser
su to the dba account (runs in csh (yuk) and loads all kinds of aliases
& env vars)
run a script (csh) that gives the user access to the database
I would like to include a line at the bottom of adduser that does
something like
su - dba < addDBuser
so that the systems operator doesn't have to do the su & enter another
command.
Is this possible?
any other suggestion?
cheers
Dave
--
Clinical Account Manager, Information Systems
Healthcare Otago (Dunedin NZ)
Ph external: 03 - 4740999
Ph internal: NB CHANGE extn 8830
email: daveb@healthotago.co.nz
Pretentious quote of the week/month (whatever):
"When a process is created, its parent process ID is the process ID of
its parent process."
man pages ..... ya gotta love em!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-04-20 22:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-20 22:18 running a command from root as another user David Bremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox