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)" <vicente.sotoma...@state.ma.us> To: fab-user@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) >From: "Waldbieser, Carl" <waldb...@lafayette.edu> >To: fab-user@nongnu.org >Subject: [Fab-user] Trouble running ad-hoc commands w/o having to > re-enter password for each host. >Message-ID: > <340280638.29373110.1407251793555.javamail.zim...@lafayette.edu> >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 _______________________________________________ Fab-user mailing list Fab-user@nongnu.org https://lists.nongnu.org/mailman/listinfo/fab-user _______________________________________________ Fab-user mailing list Fab-user@nongnu.org https://lists.nongnu.org/mailman/listinfo/fab-user