[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

nagios help

Posted on 2004-09-01
10
Medium Priority
?
507 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

650 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