Re: adding users on multiple servers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 4/1/2010 1:12 PM, Kwan Lowe wrote:
> On Thu, Apr 1, 2010 at 11:20 AM, Ryan Manikowski<ryan@xxxxxxxxxxx>  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@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux