Originally Posted by graemef
This is not really a QT problem, but how the script that you are trying to run works. Possibly a work around is to write a wrapper script which will receive a password and then call the script that you want to run, avoiding the interactive demands of sudo. If you gave some more information I might be able to give you a better answer. What does the script you want to run do, why do you need to use sudo?
thank you for your reply,actually i want to run an IPTABLES command which needs "sudo" as prefix,in terminal i write
and the button command runs correctly however without "sudo" when i click on the button it gave me "Permission denied you must be root", and when i write
sudo iptables ------
in the button code it gave me you didn't write the root password.
i hope you understand now my problem