[CentOS] adding users on multiple servers

Thu Apr 1 18:23:14 UTC 2010
Les Mikesell <lesmikesell at gmail.com>

On 4/1/2010 1:12 PM, Kwan Lowe wrote:
> On Thu, Apr 1, 2010 at 11:20 AM, Ryan Manikowski<ryan at devision.us>  wrote:
>> If you have your own account on each of the boxes the ssh key method is
>> the best.
>> 1) Create ssh keys for YOUR unprivileged user account.
>> 2) 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.

   Les Mikesell
    lesmikesell at gmail.com