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

[CentOS] adding users on multiple servers

2010-04-01 Thread Bazy
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 tell me where I need to look... Thanks and regards, Bazy

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Rajagopal Swaminathan
Greetings, On Thu, Apr 1, 2010 at 2:32 PM, Bazy baz...@gmail.com 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

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Bazy
On Thu, Apr 1, 2010 at 12:35 PM, Rajagopal Swaminathan raju.rajs...@gmail.com wrote: Greetings, On Thu, Apr 1, 2010 at 2:32 PM, Bazy baz...@gmail.com 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 baz...@gmail.com 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

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 raju.rajs...@gmail.com wrote: Greetings, On Thu, Apr 1, 2010 at 2:32 PM, Bazy baz...@gmail.com wrote: Hello folks, Unfortunately I have to add 2 users on 200 servers that do not have you checked man newusers? Regards,

Re: [CentOS] adding users on multiple servers

2010-04-01 Thread Kwan Lowe
On Thu, Apr 1, 2010 at 5:02 AM, Bazy baz...@gmail.com 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

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. What

Re: [CentOS] adding users on multiple servers

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

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

Re: [CentOS] adding users on multiple servers

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