Solved

nagios help

Posted on 2004-09-01
10
492 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
ID: 11957480
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
ID: 11957523
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
ID: 11957564
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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

Author Comment

by:jibranilyas
ID: 11957581
k , lemme try that... thankyou so much...

0
 

Author Comment

by:jibranilyas
ID: 11957637
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
 
LVL 15

Accepted Solution

by:
scampgb earned 500 total points
ID: 11957692
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
ID: 11957740
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
ID: 11957875
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
ID: 11957929
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
ID: 11958132
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

685 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