www.centos.org Forum Index CentOS 5 - General Support Translate /etc/sudoers from Ubuntu to CentOS
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
Translate /etc/sudoers from Ubuntu to CentOS | #1 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2009/3/20
From Ghent, Belgium
Posts: 25
|
I'm following this guide : http://blog.nicolargo.com/2008/10/superviser-asterisk-dans-nagios-grace-a-nagisk.html
to monitor SIP-connections on an Asterisk-server with Nagios. At some point the author mentions adding the following line to /etc/sudoers : I can not do this in CentOS and when trying to monitor SIP-connections I get the following output : I think the NRPE-plugin on my Asterisk-server has not enough rights to interrogate Asterisk about its SIP-connections. What is the equivalent of /etc/sudoers in CentOS ??? These are the rights of the check_nrpe on the Nagios Server : These are the rights of the plugin that questions about the SIP-peers on the Asterisk-server : The NRPE-plugin on the Asterisk-server is part of the Xinetd-proces. Asterisk himself is currently running as the root-user. |
||
Posted on: 2009/11/3 19:40
|
|||
|
Re: Translate /etc/sudoers from Ubuntu to CentOS | #2 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
|
To answer your direct question see "man visudo"; however, if root can't run the command sudo is probably not going to help.
|
||
|
_________________
Phil Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/11/3 19:51
|
|||
|
Re: Translate /etc/sudoers from Ubuntu to CentOS | #4 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4294
|
Quote:
That's odd. ![]() |
||
Posted on: 2009/11/4 10:34
|
|||
|
Re: Translate /etc/sudoers from Ubuntu to CentOS | #5 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2009/3/20
From Ghent, Belgium
Posts: 25
|
The sudo-package is not installed. The whole time I was looking for visudo.
Is visudo commenly used on CentOS/Fedora/RedHat ?? Always thought sudo was something for Debian-based. And there's no other way than installing the sudo-package ? |
||
Posted on: 2009/11/4 13:14
|
|||
|
Re: Translate /etc/sudoers from Ubuntu to CentOS | #6 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
|
No other way to use sudo certainly. It is used routinely on CentOS/RHEL.
Another way to do what you want to do? Maybe - I'm still not clear on what your underlying issues are, but then I don't use Nagios, nor Asterisk, nor speak French to understand the procedure you linked. |
||
|
_________________
Phil Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/11/4 13:51
|
|||
|
Re: Translate /etc/sudoers from Ubuntu to CentOS | #7 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2009/3/20
From Ghent, Belgium
Posts: 25
|
Well I don't speak French either, I speak Dutch. But I understand about six languages
. It's the only tutorial that I came across.NRPE is a Nagios-plugin to monitor services on a remote client. It is running as xinetd-service. I don't know if giving such a process root-privileges will make my server less secure ? |
||
Posted on: 2009/11/4 14:02
|
|||
|
Re: Translate /etc/sudoers from Ubuntu to CentOS | #8 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/9/3
From NYC
Posts: 666
|
Have you seen http://www.maxsworld.org/index.php/how-tos/nrpe
I'm not sure if it will solve your issues or not, but it is CentOS specific. Sudo isn't Debian. What Ubuntu (not Debian) has done is follow Mac OS X, pretty much eliminating the root account and having sudo do everything. Fedora seems headed in that direction as well. Distributions that assume their users have more experience (at least, this is how it seems to me), certainly also use sudo, but some, like CentOS, have different paths for users and root. I have a page on this at http://home.roadrunner.com/~computertaijutsu/rhpath.html Hope that at least some of this helps a bit, but I'm not sure it will. |
||
Posted on: 2009/11/4 17:14
|
|||
|
Re: Translate /etc/sudoers from Ubuntu to CentOS | #9 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2009/3/20
From Ghent, Belgium
Posts: 25
|
Thank you for the link. It brings no new info for me.
It's really the combination of NRPE without root-privileges that has to check a service which runs as root. It's time I learn to sudo I guess. What is the best solution : OR : |
||
Posted on: 2009/11/5 8:30
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
jonaskellens





. It's the only tutorial that I came across.

You cannot start a new topic.
You can view topic.