[sudo-users] FW: sudo question

Tulsi Ram Mayala trammayala at strongmail.com
Thu Feb 16 20:12:44 EST 2006


This is regarding the sudo problem discussed and explained at http://archives.neohapsis.com/archives/openbsd/2002-01/0980.html

I think sudo should support these arguments. Just comparing it with perl interpreter:

#!/usr/bin/perl -w -I../include

thanks,
Tulsi Ram.

-----Original Message-----
From: Darren Hoch
Sent: Thu 2/16/2006 4:30 PM
To: Tulsi Ram Mayala; Youshik Um
Subject: RE: sudo question
 
Tulsi,

Check out this response from the author of sudo. It still does not solve the problem.

http://archives.neohapsis.com/archives/openbsd/2002-01/0980.html

D

-----Original Message-----
From: Tulsi Ram Mayala 
Sent: Thursday, February 16, 2006 4:20 PM
To: Darren Hoch; Youshik Um
Subject: sudo question

Hi Darren/Youshik,

One question:

I can run a bash script1.sh as follows:

$>cat script1.sh
#!/bin/bash
echo success
$>/usr/bin/sudo -u strongmail script1.sh
success
$>

but if I run script2.sh as follows:

$>cat script2.sh
#!/usr/bin/sudo -u strongmail /bin/bash
echo success
$>./script2.sh
/usr/bin/sudo: Please use single character options
usage: sudo -V | -h | -L | -l | -v | -k | -K | [-H] [-P] [-S] [-b] [-p prompt]
            [-u username/#uid] -s | <command>

Why?
Is there a way to fix this?

thanks,
Tulsi Ram.




More information about the sudo-users mailing list