Re: Why doesn't this sudo script using zenity work??
- From: William Case <billlinux@xxxxxxxxxx>
- 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.Tried:
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.
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
- Follow-Ups:
- Re: Why doesn't this sudo script using zenity work??
- From: Stefano Sabatini
- Re: Why doesn't this sudo script using zenity work??
- References:
- Why doesn't this sudo script using zenity work??
- From: William Case
- Re: Why doesn't this sudo script using zenity work??
- From: Stefano Sabatini
- Why doesn't this sudo script using zenity work??
- Prev by Date: Re: I must be missing something...keystroke maneuvering between applications under different virtual desktops
- Next by Date: Re: Window properties - roles?
- Previous by thread: Re: Why doesn't this sudo script using zenity work??
- Next by thread: Re: Why doesn't this sudo script using zenity work??
- Index(es):
Relevant Pages
|
|