View Single Post
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#8
Another idea is if you do:

Code:
cat > /usr/bin/changemymac << EOF
#!/bin/sh
echo ifconfig wlan0 down | root
echo macchanger --r wlan0 | root
echo ifconfig wlan0 up | root
EOF
chmod +x /usr/bin/changemymac
Instead, you should just be able to run "changemymac" as user and it'll run each of those commands as root.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!