Re: [CentOS] adding users on multiple servers

2010-04-02 Thread Kristopher Kane
What about Func in EPEL? It can handle the ssh keys for you as well. https://fedorahosted.org/func/ *I have never used this in CentOS or any package from EPEL for that matter. -Kris ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mai

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Les Mikesell
On 4/1/2010 1:12 PM, Kwan Lowe wrote: > On Thu, Apr 1, 2010 at 11:20 AM, Ryan Manikowski 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:

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Kwan Lowe
On Thu, Apr 1, 2010 at 11:20 AM, Ryan Manikowski 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 fr

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Ryan Manikowski
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: userALL=NOPASSWD: /bin/su - Then from there you can use clusterssh to connect to all the boxes simultaneous

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Ross Walker
On Apr 1, 2010, at 9:24 AM, Bazy 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 r

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Bazy
> > 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. Wh

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Kwan Lowe
On Thu, Apr 1, 2010 at 5:02 AM, Bazy wrote: > Hello folks, > > Unfortunately I have to add 2 users on 200 servers that do not have > centralized authentication or sudo or the same room password. I tried > doing this with expect and "su -" but the script fails or acts funny. > Please advise me or t

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Les Mikesell
Bazy wrote: > On Thu, Apr 1, 2010 at 12:35 PM, Rajagopal Swaminathan > wrote: >> Greetings, >> >> On Thu, Apr 1, 2010 at 2:32 PM, Bazy wrote: >>> Hello folks, >>> >>> Unfortunately I have to add 2 users on 200 servers that do not >> have you checked man newusers? >> >> Regards, >> >> Rajagopal >

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Rajagopal Swaminathan
Greetings, On Thu, Apr 1, 2010 at 3:43 PM, Bazy wrote: > > Thanks Raja. My problem is connecting to those 200 servers and su-ing > in, they all have different root passwords. If you have _that_ kind of infrastructure you are better off using a Directory server too. If you have telnet, you can t

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Bazy
On Thu, Apr 1, 2010 at 12:35 PM, Rajagopal Swaminathan wrote: > Greetings, > > On Thu, Apr 1, 2010 at 2:32 PM, Bazy wrote: >> Hello folks, >> >> Unfortunately I have to add 2 users on 200 servers that do not > > have you checked man newusers? > > Regards, > > Rajagopal Thanks Raja. My problem is

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Rajagopal Swaminathan
Greetings, On Thu, Apr 1, 2010 at 2:32 PM, Bazy wrote: > Hello folks, > > Unfortunately I have to add 2 users on 200 servers that do not have you checked man newusers? Regards, Rajagopal ___ CentOS mailing list CentOS@centos.org http://lists.centos.o