PDA

View Full Version : Bash script sudo password


satbobo
June 11th, 2007, 06:20 AM
Hi everybody,
I want to create I script to update a small cluster of computers to install software and perform several tasks.
Sometimes it happens that I need to call commands with admin rights but of course in that case I need to prompt the password.
Since I'd like to automate the all process I am wondering if there is a way to input the sudo password from a file or if there exist other workarounds.
Thanks in advance

FryerFox
June 11th, 2007, 09:47 AM
The traditional way is to use public-private key authentication:

http://www.ece.uci.edu/~chou/ssh-key.html

satbobo
June 11th, 2007, 05:37 PM
Thank you very much for your reply... I will follow your advice...cheers