Re: using zenity to write a sudo script ??
- From: Olav Vitters <olav bkor dhs org>
- To: William Case <billlinux rogers com>
- Cc: GNOME List <gnome-list gnome org>
- Subject: Re: using zenity to write a sudo script ??
- Date: Sat, 22 Dec 2007 10:48:24 +0100
On Sat, Dec 22, 2007 at 12:44:37AM -0500, William Case wrote:
> # Open nautilus as root from user account
> # file name: RootBrowse
>
> sudo -K
> if zenity --entry \
> --title="Browse files as root" \
> --text="Enter your user _password:" \
> --entry-text "" \
> --hide-text
> then $1 | sudo nautilus --no-desktop --browser \
that would need sudo -S, see man sudo
Not sure where you'd expect $1 to be defined.
> 1> /dev/null 2> /dev/null
> else zenity --error --text="Sorry, wrong password";
> exit 1
> fi
>
> # End
--
Regards,
Olav
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]