LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-02-2011, 03:45 AM   #1
ayush1440
Member
 
Registered: Dec 2007
Posts: 75

Rep: Reputation: 15
Install Nagios with different default user.


Hello Friends,

I successfully installed nagios monitoring tool on Debian server and works perfect.

Now I want to install on RHEL 5 server and it is production LIVE server. So i have to use different UserName rather then default nagios user.

I have searched in google but don't fine any documentation related to install nagios with different user and group.

Can somebody tell me how it is possible? I have tried few commands and try to compile and install but it fails every time.

I used ./configure --with-nagios-user=ex-nag --with-command-user=ex-nag --with-nagios-group=ex-nag --with-command-group=ex-nag but it doesn't work.

Help would be really appreciated.
 
Old 12-02-2011, 04:38 AM   #2
lordy
LQ Newbie
 
Registered: Feb 2003
Location: Bulgaria
Distribution: debian/fedora
Posts: 11

Rep: Reputation: 0
Hi,

Why would you need to run it as different user than the default one?
If this is just a step to security through obscurity - simple trick would
be to change the username in the passwd/shadow file - keeping the user id.
Otherwise you'll need to change some directory ownership and permissions -
for example var and run related directories, where the process needs to
'operate' - create/modify/delete files.

Good luck

P.S. strace is your friend
 
Old 12-02-2011, 05:24 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
As the previous poster said you shouldn't (need to) do this. If it's a production server then IMHO you should aim to keep things as uniform as possible to minimize (causing) problems with maintenance and such. While maybe not for RHEL but for at least for Centos Nagios and a slew of plugins are available from the repos. So changing user and group could cause problems if any scriptlets require default user and group, might cause problems if SELinux policy for Nagios is loaded and might hamper upgrading stuff. Besides on a system that uses a most mature package management system it's not advisable, unless there is no alternative, to install packages from source.
 
  


Reply

Tags
monitoring, nagios



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nagios web GUI change default page junust Linux - Server 10 04-29-2022 08:46 PM
how to change nagios default logo rajiv.patil82 Linux - Software 2 03-09-2011 06:07 AM
Fail to install Nagios Pluggin nagios-plugins-1.4.15.tar.gz fred_xlf Linux - Software 1 11-27-2010 06:09 AM
Create user add file with default password and force user to change it? Morgandy Linux - Newbie 3 02-02-2010 05:06 PM
what is the "default" user created by zope on install? eantoranz Ubuntu 4 09-16-2005 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration