sudo and environment variables
- From: kebuchan@xxxxxxxxx
- Date: 22 Feb 2006 08:01:38 -0800
Hi all,
I'm fairly new to the AIX world and am looking to set up a script to
have operators run some commands. These aren't OS level commands that
need root privs, they're SAP database backup commands but we don't want
them to have sap admin userid access.
I have it set up so that it runs as the dbadmin user but it complains
about libraries and other files missing. If I run the same thing with
an su, it seems to work as it inherits the environment of the "target"
user.
Can I do the same thing in sudo? So that when the ops run the script,
it calls the backup script as the dbadmin user with all of it's
environment variables defined?
Thanks,
Kevin
.
- Follow-Ups:
- Re: sudo and environment variables
- From: Andy France
- Re: sudo and environment variables
- From: Dan Foster
- Re: sudo and environment variables
- Prev by Date: Re: AIX failover password preservation
- Next by Date: Re: Etherchannel or VIPa ? ?
- Previous by thread: AIX failover password preservation
- Next by thread: Re: sudo and environment variables
- Index(es):
Relevant Pages
|