Discussion:
[Fab-user] Trouble running ad-hoc commands w/o having to re-enter password for each host
Sotomayor, Vicente (ITD)
2014-08-05 16:19:34 UTC
Permalink
Message: 1
Date: Tue, 5 Aug 2014 11:16:33 -0400 (EDT)
Subject: [Fab-user] Trouble running ad-hoc commands w/o having to
re-enter password for each host.
Content-Type: text/plain; charset=utf-8
Sometimes, I want to just run an ad-hoc shell command on multiple hosts that requires elevated privileges. E.g. I might want to grep a couple >logs that are not world-readable.
So I had to type my password in 2 times, even though it is the same on each of the 2 servers. Am I doing something wrong?
Thanks,
Carl Waldbieser
ITS Systems Programmer
Lafayette College
------------------------------

You should be able to modify your sudoers file on the boxes so it won't prompt you. Something like:
user_name ALL=(ALL) NOPASSWD: ALL
Waldbieser, Carl
2014-08-05 17:54:21 UTC
Permalink
Yes, I *could* do that, but I don't really want to.
I want to have to actually type in my password to use rootly powers.
I just don't want to have to type it in multiple times.

Shouldn't fabric store the password like it does when I run an actual fabfile?
In that case, I enter my password one time, and it is reused for each host.

Thanks,
Carl

----- Original Message -----
From: "Vicente Sotomayor (ITD)" <***@state.ma.us>
To: fab-***@nongnu.org
Sent: Tuesday, August 5, 2014 12:19:34 PM
Subject: Re: [Fab-user] Trouble running ad-hoc commands w/o having to re-enter password for each host
Message: 1
Date: Tue, 5 Aug 2014 11:16:33 -0400 (EDT)
Subject: [Fab-user] Trouble running ad-hoc commands w/o having to
re-enter password for each host.
Content-Type: text/plain; charset=utf-8
Sometimes, I want to just run an ad-hoc shell command on multiple hosts that requires elevated privileges. E.g. I might want to grep a couple >logs that are not world-readable.
So I had to type my password in 2 times, even though it is the same on each of the 2 servers. Am I doing something wrong?
Thanks,
Carl Waldbieser
ITS Systems Programmer
Lafayette College
------------------------------

You should be able to modify your sudoers file on the boxes so it won't prompt you. Something like:
user_name ALL=(ALL) NOPASSWD: ALL

Loading...