Sotomayor, Vicente (ITD)
2014-08-05 16:19:34 UTC
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
------------------------------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