I have a backup drive that is Truecrypt Encrypted. I'd like to automnt this drive so I can automate backups when in the office. I am using Linux Mint 12 x64bitI wrote a script that runs successfully with Sudo to mount the encrypted drive. However, I can not get the drive to mount automatically...I tried entering the script into rc.local, but that doesn't work. So I tried editing the sudoers file (thinking I could enter this script into the startup applications area for Mint):username ALL= NOPASSWD: /usr/local/bin/bakmnt.sh*username is replaced with my real my username in the sudoers fileStill, when I try to run the script without sudo, I get:Error: Failed to obtain administrator privileges.I'm out of ideas, googling around seems to be an issue with Truecrypt..but I still come up empty for a solution. Any thoughts out there? thanks for reading!!
Giving a custom script root permissions
linux;scripting;linux mint;startup
Using sudoers is crock upon hack upon kludge; don't do that.  rc.local (or a separate file in init.d) is the correct place to do this.  Capture the output of your script when run from there and determine why it is failing.  That should give you information you need to fix the script so that it works from rc.local.