On 4/1/2010 1:12 PM, Kwan Lowe wrote:
On Thu, Apr 1, 2010 at 11:20 AM, Ryan Manikowskiryan@devision.us wrote:
If you have your own account on each of the boxes the ssh key method is the best.
Create ssh keys for YOUR unprivileged user account.
Add YOUR account to /etc/sudoers by adding: user ALL=NOPASSWD:
/bin/su -
Then from there you can use clusterssh to connect to all the boxes simultaneously. Issue the 'sudo su -' command while logged in with your account, then run add the new users on all of the systems.
Might save a step to just add ALL to the user sudo... That way doesn't need to su over..
Or set up the ssh key to run as root on the targets from your control login in the first place and avoid the need to su/sudo at all.