sudo - was ...Try, try again

Rodney Tamblyn rodneytamblyn at paradise.net.nz
Thu Jun 19 05:43:00 EDT 2003


Oh, now I understand.  Wouldn't it be better to edit the sudoer file 
and modify the privilege for the named user to allow execution without 
password? (see man sudoers )

R.

On Tuesday, June 17, 2003, at 03:14 AM, Yennie at aol.com wrote:

> Just a poor choice of variable name.
>
> > get shell("echo '"&pwd&"' | sudo"&&cmd)
>
> This won't actually put "pwd" in the shell command, it's a variable.
>
> You'll still get something like:
>
> > echo 'MyPassword' | sudo MyCommand
>
> as the final shell command.
>
>
> 'pwd' puts the working directory ie the directory you are currently
> working in for operations like file listing. copying etc...
>
>
>
>
>
>
>
> ------------------------------
> Brian Yennie
> Chief Technology Officer
> QLD Learning, LLC
> www.QLDLearning.com
>
> PH: (904)-997-0212
> EMAIL: Yennie at aol.com
> -------------------------------
>
--
Rodney Tamblyn
44 Melville Street
Dunedin
New Zealand
+64 3 4778606
http://rodney.weblogs.com/




More information about the metacard mailing list