Link to home
Start Free TrialLog in
Avatar of jibranilyas
jibranilyas

asked on

nagios help

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
Avatar of scampgb
scampgb
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of jibranilyas
jibranilyas

ASKER

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?
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.
k , lemme try that... thankyou so much...

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?
ASKER CERTIFIED SOLUTION
Avatar of scampgb
scampgb
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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
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?
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 :-)