Re: [Bulk] Re: using zenity to write a sudo script ??
- From: William Case <billlinux@xxxxxxxxxx>
- Date: Sat, 22 Dec 2007 07:18:51 -0500
Thanks Daniel and Olav;
On Sat, 2007-12-22 at 19:28 +1000, Daniel James wrote:
You will probably need to use sudo -SYes. My starting script had sudo -S. My apologies, I sent a copy of a
sudo will not read from stdin by default..
version of my script written at the height of frustration. Here is my
problem more accurately. The following code works from the command line
"]$ sh RootBrowse" but fails to work from the nautilus-scripts menu.
#! /bin/bash
# Open nautilus as root
# file name: RootBrowse
sudo -K
zenity --entry \
--title="Browse files as root" \
--text="Enter your user _password:" \
--entry-text "" \
--hide-text | sudo -S nautilus --no-desktop --browser 1>/dev/null
2>/dev/null
# End
That is; the zenity entry window pops up but after the correct password
is entered nothing further seems to happen. From the command line in
contrast, the root browser opens after the correct password is entered
in the popup entry window.
--
Any help, advice or explanations will be gratefully received.
Regards Bill
_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list
- Follow-Ups:
- Re: [Bulk] Re: using zenity to write a sudo script ??
- From: Stefano Sabatini
- Re: [Bulk] Re: using zenity to write a sudo script ??
- References:
- using zenity to write a sudo script ??
- From: William Case
- using zenity to write a sudo script ??
- Prev by Date: Re: using zenity to write a sudo script ??
- Next by Date: Problem with evince
- Previous by thread: Re: using zenity to write a sudo script ??
- Next by thread: Re: [Bulk] Re: using zenity to write a sudo script ??
- Index(es):