[sudo-users] Memory Fault when running sudo out of a shell script
Galen.Johnson at sas.com
Thu Aug 5 16:57:15 EDT 2004
I have to ask...why are you using 'sudo su - user2 -c \"autorun -bg opr_test_a\"#List vars'? Why not just use 'sudo -u user2 autorun -bg opr_test_a'?
From: sudo-users-bounces at courtesan.com [mailto:sudo-users-bounces at courtesan.com] On Behalf Of Christopher.Polikowsky at wellsfargo.com
Sent: Thursday, August 05, 2004 2:34 PM
To: sudo-users at sudo.ws
Subject: [sudo-users] Memory Fault when running sudo out of a shell script
I have a group of analysts that are attempting to use sudo by calling a sudo
command from with a Korn shell script. The script is called: opr_test
They call the originating shell script as user1. It does 10 steps as
user1, then step 11, needs to be executed as user2. Then steps 12,13,14, &
15 need to be executed as user1.
Below is the syntax that we are trying to use (note that .jobstep is a
function we built to add variables):
. jobstep '11 sudo su - user2 -c \"autorun -bg opr_test_a\"#List vars'
Everything runs fine until step 11, then we get the Memory error below:
/apps/dev/opr/job/opr_test: 13738 Memory fault
We are able to run each step interactively without any issues, but when we
place it in a shell script, we get a memory fault.
Any help would be greatly appreciated.
Email: mailto:Christopher.Polikowsky at wellsfargo.com
<mailto:Christopher.Polikowsky at wellsfargo.com>
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:
More information about the sudo-users