Why doesn't this sudo script using zenity work??



Hi;

I have tried several variations of the following script and googled for
some clues. No joy.

#! /bin/bash
# Open nautilus as root
#
 
sudo nautilus --no-desktop --browser
if zenity --entry \
	--title="Browse files as root" \
    --text="Enter your _password:" \
    --entry-text "" \
    --hide-text
then echo $?
else echo "No password entered"
fi

# End

sudo nautilus --no-desktop --browser works on the command line.
Why doesn't this sudo script using zenity work?? 

-- 
Regards Bill




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]