Solved

nagios help

Posted on 2004-09-01
10
471 Views
Last Modified: 2010-03-18
I am installing Nagios on Red H

I have had success with all the steps til installing the plug in... just one command that throws the error. i.e.  make install-init

I  couldn't run "make install-init"

i get this error:

[nagios@localhost nagios-1.2]$ make install-init
/usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
/usr/bin/install: cannot change permissions of `/etc/rc.d/init.d': Operation not permitted
make: *** [install-daemoninit] Error 1
[nagios@localhost nagios-1.2]$

How do i get access to the root,,, i get this error when i try to go to root
[nagios@**************** nagios-1.2]$ cd /root
bash: cd: /root: Permission denied
[nagios@***************   nagios-1.2]$


PLease tell me wat my problem is... i think the permissions are srewing the process

Thanks
0
Comment
Question by:jibranilyas
  • 6
  • 4
10 Comments
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
Hi jibranilyas,

It looks like you're not running the installation process as "root".
You need to be logged in as the root users in order to have permission to write to those directories.

I hope that this helps - let me know if I can be of any further help.
0
 

Author Comment

by:jibranilyas
Comment Utility
yuppp... i am logged on as nagious, which is  the account i created.. i added that account to the group "administrator"

How do i install it from the root...

should i create a new user account root?
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
You should already have a "root" account.  It's the Unix equivalent of the Windows Administrator account.
It's the account that has permission to do everything, including create users.

When you installed RedHat you would have set a password for the root account.  You simply need to log in with those details and then run the installation process.

If you don't know the root password, but have permissions to change passwords, run:
passwd root

... and choose a new root password.
0
 

Author Comment

by:jibranilyas
Comment Utility
k , lemme try that... thankyou so much...

0
 

Author Comment

by:jibranilyas
Comment Utility
error

"passwd: only root can specify the user name"

so, i m not in the root

when i go to users and groups, i have two entries

one is administrator
one is nagios

should there be a root?
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 15

Accepted Solution

by:
scampgb earned 500 total points
Comment Utility
Did you do the install of RedHat yourself?
What account were you logged into in order to create the "nagios" user?

It's possible (and actually a good idea) to rename the "root" account, so your administrator account might be this.
I'm not familiar with RH, so I don't know if this is a default for the install.

Are you able to log in with this administrator account?  
Try logging into that account and run the "id" command.  You'll get output similar to:
uid=0(root) gid=0(root) groups=0(root)

If it says UID=0, then the account that you're logged into is the root account.
0
 

Author Comment

by:jibranilyas
Comment Utility
i get uid=500 (administrator) gid=500 (administrator) groups=500(administrator)

I have the root password though, any thing i try to do in system, it asks me for the root password,, i enter the root password and it lets me in
0
 

Author Comment

by:jibranilyas
Comment Utility
update:

i have deleted the two accounts that were in USERS AND GROUPS.

I am gonna start over for nagios..

I tried to creat a root user "root"
When i do that, it says this user already exists... The UID field is greyed out also
0
 

Author Comment

by:jibranilyas
Comment Utility
update: I deleted two user groups and logged out..

on username, i typed: root and password i used the same

now when i run the "id" command, i get uid 0

thanks...

any other tips before i start my nagios installation all over?
0
 
LVL 15

Expert Comment

by:scampgb
Comment Utility
Sorry, was away from the PC while all that was happening!

OK, now that you're logged in as root, you shouldn't have any problems with permissions.

Just do the build and install like it says in the Nagios instructions.

When I last set it up, I didn't encounter any problems with it - it behaved perfectly.

The configuration can take a while to get used to though!

Thanks for the "A".  Glad I could help :-)
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now