Solved

nagios help

Posted on 2004-09-01
10
480 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
 

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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

12 Experts available now in Live!

Get 1:1 Help Now