From: David Bremer <DaveB () healthotago ! co ! nz>
To: tru64-unix-managers
Subject: running a command from root as another user
Date: Sun, 20 Apr 1997 22:18:30 +0000 [thread overview]
Message-ID: <96078611110538.tru64-unix-managers.marc@archive.invalid> (raw)
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!
reply other threads:[~1997-04-20 22:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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