Using sudo in shell

Glen Bojsza gbojsza at gmail.com
Wed Jul 8 14:09:16 EDT 2015


Hi Thierry,

I already can modify my system so I won't be prompted for a password as
noted in your link but I need something so it will work on systems that are
not modified.

Since this is being done locally on the machine the ssh -t option won't
help.

regards,

On Wed, Jul 8, 2015 at 1:54 PM, Thierry Douez <th.douez at gmail.com> wrote:

> Hi Glen,
>
> Not knowing your context, this might not be what you are looking for.
> but as a start?
>
>
> http://superuser.com/questions/256981/non-interactive-ssh-sudo-prompts-for-the-password-in-plain-text
>
> Regards,
>
> Thierry
>
> ------------------------------------------------
> Thierry Douez - http://sunny-tdz.com
> sunnYperl - sunnYmidi - sunnYmage - sunnYtext2speech - sunnYrex
>
>
> 2015-07-08 19:35 GMT+02:00 Glen Bojsza <gbojsza at gmail.com>:
> > I was wondering if there is a way to do a shell that has sudo in it?
> >
> > On the first attempt (Note dart is an internal application)
> >
> > put shell ("sudo dart")
> >
> > I get the following error message
> >
> > sudo: no tty present and no askpass program specified
> >
> > Is there any way to run sudo from the shell?
> >
> > thanks,
> >
> > Glen
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the Use-livecode mailing list