using sudo to execute script as another user

Simon Jespersen shj at pine.dk
Mon Aug 26 11:57:02 EDT 2002


Hi list

i have installed and configured sudo and it seems to work ok, but i do have
a problem.

I want to execute a script from user "bb" as user "el" with el environment.
When i do sudo -u el -s /opt/script/myscript.pl the script execute alright
but it fails duo to the wrong invironment.

if i do su - el -c /opt/script/myscript.pl from bb it works fine but promts
me for passwd.

I want to use sudo so that i can use it for set f.eks in bb crontab etc.

Is it possible or am i bound to use the root crontab for this one.




 Simon Jespersen
Project engineer
Pine Tree Systems A/S
Damhaven 5d
DK-7100 Vejle
Email: shj at pine.dk
Phone: +4575724477

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/sudo-users/attachments/20020826/1b7128ac/attachment.html>


More information about the sudo-users mailing list