Re: adding users on multiple servers

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



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.

Just another idea.

	 Ryan Manikowski


]] Devision Media Services LLC [[
	 www.devision.us
 ryan@xxxxxxxxxxx | 716.771.2282


On 4/1/2010 10:09 AM, Ross Walker wrote:
> On Apr 1, 2010, at 9:24 AM, Bazy <bazy84@xxxxxxxxx> wrote:
>
>   
>>> Short of finding some remotely exploitable vulnerability, you'll have
>>> to visit each server and login. Imagine if you *could* create IDs
>>> without root authority? :D
>>>
>>> Are the servers identically configured?
>>>
>>> If you can login remotely as root you can automate some of them via
>>> expect. What issues were you encountering?
>>>
>>> If you're doing this it might be the perfect opportunity to add some
>>> sort of remote management or authentication to the systems.
>>>       
>> I cannot do any changes to the environment therefor I cannot configure
>> centralized authentication :-) It's fun stuff.
>> I managed to find a way with perl and Net::SSH::Expect.
>>
>> The simple expect script would enter the su password and die without
>> sending the adduser commands.
>>     
> Like another poster suggested, create root .ssh key, copy it to each  
> box, modify sshd.conf to allow login via either key or password in  
> each box, you hold the key, they hold the password.
>
> You can then use one of those ssh cluster utilities out there that  
> issues the same command on a list of servers.
>
> That is the best way and it requires minor changes with zero impact to  
> the operational environment.
>
> -Ross
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>   
_______________________________________________
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