How do I fix this test program?
Code:
#!/bin/bash
gksudo bash <<EOF
ifconfig
echo "I'm" root!
touch /tmp/helloworld
EOF
I'll replace the code here, clearly. I have a client that needs a brief script that runs as root (Kubuntu). This works with sudo, but I cannot expect them to open the shell and type a command. This needs to be point and click.
I've also tried kdesudo. They seem to accept the password, and then freeze. I'm missing something, probably something simple.