Re: How to 'su' to root from a script using Xdialog?
Am 2006-03-17 13:54:04, schrieb Anibal J. Avelar:
>
> You could use 'sux', but you need to install that program.
right.
> Or you can do this:
>
> /bin/su - $USER -c command
>
> With this you will avoid $DISPLAY problems.
This is what I genrally use, but it requires a terminal to enter the
password. I do not like to use the terminal, but a fd or something
like this.
I like to have a Dialog which tell the $USER: "This programm requires
root permission. Please enter the password:"
> regards.
Greetings
Michelle Konzack
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Reply to: