Re: Why doesn't this sudo script using zenity work??
- From: William Case <billlinux rogers com>
- To: Stefano Sabatini <stefano sabatini-lala poste it>
- Cc: gnome-list gnome org
- Subject: Re: Why doesn't this sudo script using zenity work??
- Date: Fri, 01 Dec 2006 11:15:33 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]