Re: Why doesn't this sudo script using zenity work??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Stefano;

I had forgotten the '|' pipe.  However, ....

On Fri, 2006-12-01 at 12:05 +0100, Stefano Sabatini wrote:
> On date Friday 2006-12-01 05:02:30 -0500, William Case wrote:
> > Hi;

> Because you need sudo to read the password passed by zenity on stdout.
> So you have to do:
> 
> zenity --entry \
>        --title="Browse files as root" \
>        --text="Enter your _password:" \
>        --entry-text "" \
>        --hide-text \
> | sudo -S nautilus --no-desktop --browser
> 
> then control the return code of sudo to check that the password
> entered was correct.
> 
Tried:
zenity --entry \
       --title="Browse files as root" \
       --text="Enter your _password:" \
       --entry-text "" \
       --hide-text | sudo -S nautilus --no-desktop --browser

Nothing shows up on my desktop.

Tried it again in gTerminal and got:
my file browser in root plus:

Password:   
[Entered through zenity ==> File Browser plus in stdout / stderror?]
Initializing nautilus-search-tool extension
Initializing nautilus-open-terminal extension

What do I do with these two lines?
-- 
Regards Bill

_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux