Re: [CentOS] OT: Scripting with sudo password

2007-11-14 Thread Les Mikesell
[EMAIL PROTECTED] wrote: The password would not be kept on disk as was pointed out in my first e-mail. The user would be prompted *once* for the password which would then be passed to any number of tasks. A good example would be a clusterssh session that requires a password to authenticate aga

Re: [CentOS] OT: Scripting with sudo password

2007-11-14 Thread thad
You can use expect man expect. You can also export ssh key of regular user to do remote then su to root put everything on expect. On 11/14/07, James A. Peltier <[EMAIL PROTECTED]> wrote: > Completely off topic, but I'm sure someone out there is using scripts > that require a sudo password of som

Re: [CentOS] OT: Scripting with sudo password

2007-11-14 Thread Garrick Staples
On Wed, Nov 14, 2007 at 05:13:37PM -0800, James A. Peltier alleged: > [EMAIL PROTECTED] wrote: > >How about using ssh with certificate authenitication instead of sudo? > > > That's great for SSH, I already do that, but if I ssh to a system and > then type sudo it prompts me for a password. I want

Re: [CentOS] OT: Scripting with sudo password

2007-11-14 Thread James A. Peltier
James A. Peltier wrote: [EMAIL PROTECTED] wrote: How about using ssh with certificate authenitication instead of sudo? That's great for SSH, I already do that, but if I ssh to a system and then type sudo it prompts me for a password. I want something like this ssh_and_sudo_on_all_hosts this

Re: [CentOS] OT: Scripting with sudo password

2007-11-14 Thread James A. Peltier
[EMAIL PROTECTED] wrote: How about using ssh with certificate authenitication instead of sudo? That's great for SSH, I already do that, but if I ssh to a system and then type sudo it prompts me for a password. I want something like this ssh_and_sudo_on_all_hosts this script prompts for passw

Re: [CentOS] OT: Scripting with sudo password

2007-11-14 Thread gjgowey
How about using ssh with certificate authenitication instead of sudo? Sent from my BlackBerry wireless handheld. -Original Message- From: "James A. Peltier" <[EMAIL PROTECTED]> Date: Wed, 14 Nov 2007 17:04:46 To:CentOS mailing list Subject: Re: [CentOS] OT: Scr

Re: [CentOS] OT: Scripting with sudo password

2007-11-14 Thread James A. Peltier
Robert Spangler wrote: On Wed November 14 2007 14:41, James A. Peltier wrote: Completely off topic, but I'm sure someone out there is using scripts that require a sudo password of some sort, so I'll ask. What are people doing to automate tasks that required sudo passwords in order to run?

Re: [CentOS] OT: Scripting with sudo password

2007-11-14 Thread Robert Spangler
On Wed November 14 2007 14:41, James A. Peltier wrote: > Completely off topic, but I'm sure someone out there is using scripts > that require a sudo password of some sort, so I'll ask. > > What are people doing to automate tasks that required sudo passwords in > order to run? sudo without a p

Re: [CentOS] OT: Scripting with sudo password

2007-11-14 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/14/07, James A. Peltier wrote: > Completely off topic, but I'm sure someone out there is using scripts > that require a sudo password of some sort, so I'll ask. > > What are people doing to automate tasks that required sudo passwords in > orde

[CentOS] OT: Scripting with sudo password

2007-11-14 Thread James A. Peltier
Completely off topic, but I'm sure someone out there is using scripts that require a sudo password of some sort, so I'll ask. What are people doing to automate tasks that required sudo passwords in order to run? sudo without a password is not an option for me, but I would like to be able to e