[sudo-users] Memory Fault when running sudo out of a shell script

Christopher.Polikowsky at wellsfargo.com Christopher.Polikowsky at wellsfargo.com
Thu Aug 5 14:33:39 EDT 2004

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[38]: 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.

Thank you.

Christopher Polikowsky
Email: mailto:Christopher.Polikowsky at wellsfargo.com
<mailto:Christopher.Polikowsky at wellsfargo.com> 

More information about the sudo-users mailing list