Re: using zenity to write a sudo script ??
- From: Olav Vitters <olav@xxxxxxxxxxxx>
- 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
_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list
- References:
- using zenity to write a sudo script ??
- From: William Case
- using zenity to write a sudo script ??
- Prev by Date: using zenity to write a sudo script ??
- Next by Date: Re: [Bulk] Re: using zenity to write a sudo script ??
- Previous by thread: using zenity to write a sudo script ??
- Next by thread: Re: [Bulk] Re: using zenity to write a sudo script ??
- Index(es):
Relevant Pages
|
|