How to run Bash script as root with no password? [closed]

view full story

http://askubuntu.com – Possible Duplicate: How do I use sudo in my script without needing a password? I want to run a bash script as root with no password prompt. I tried visudo with no luck(your_username ALL=(ALL) NOPASSWD: /path/to/your/script). It seems to me the only way out there, is there any other? (HowTos)