Solved

Access to Root in REd Hat

Posted on 2004-08-30
8
463 Views
Last Modified: 2013-12-06
Linuz-newbie..........
I can not create a directory in /usr/local in RED HAT.

I am trying to install nagios  on Red Hat. The documentation directs to create a dir in /usr/local... but when i go to the FILE SYSTEM, it doesn't show an option to Create Folder ( its greyed out )

Any solutions to that

I have the adminitrative rights to the root too.. actually i created an "administrator account only"
if you know how to add user to a directory, please instruct that also ..
0
Comment
Question by:jibranilyas
  • 5
  • 2
8 Comments
 
LVL 6

Accepted Solution

by:
icemanwol earned 300 total points
ID: 11936553
What you need to do is have ROOT access to your system, the easiest way to do this is open a Terminal window and then type SU and press enter, now enter your root password.  You are now running as ROOT in linux, Any programs you lauch in this terminal will also run with ROOT access and you can do anything to your system so be careful!  To create a directory in there you would type cd /usr/local (then press enter) and then type MKDIR directories_name.  If the terminal windows is too complex for you (it can be overwhelimg with new users) you can run a grafical window with root privalages by typeing nautilus or konqueror and pressing enter.  I would sugget useing the latter as little as possible because if you make a mistake there is no turning back.  Hope this answers your qustion
0
 
LVL 79

Assisted Solution

by:lrmoore
lrmoore earned 200 total points
ID: 11936743
iceman is correct.
Right-click on the desktop, select New Terminal

[lrmoore@shrike lrmoore]$ su
password:
[lrmoore@shrike lrmoore]#cd /usr/local
[lrmoore@shrike local]#mkdir nagios
[lrmoore@shrike local]#cd nagios
[lrmoore@shrike nagios]#pwd
/usr/local/nagios
[lrmoore@shrike nagios]#
0
 

Author Comment

by:jibranilyas
ID: 11942749
i got that far. but i am still unable to drag files to the/usr/local/nagios folder ...
actually, i can't create one anywhere in usr from the "explorer mode" TERMINAL let me create the nagios  dir.

how can i make this machine less  restrictive ?
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:jibranilyas
ID: 11942782
also, when i go to the properties of that nagios folder, it says "you are not the owner, so you don't have permissions .."
0
 

Author Comment

by:jibranilyas
ID: 11943216
this is where i get stuck in nagios installation


[nagios@localhost nagios-1.2]$
[nagios@localhost nagios-1.2]$ make install
cd ./base && make install
make[1]: Entering directory `/usr/local/nagios-1.2/base'
/usr/bin/install -c -m 775 -o someuser -g nagios -d /usr/local/nagios/bin
/usr/bin/install: invalid user `someuser'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/local/nagios-1.2/base'
make: *** [install] Error 2
[nagios@localhost nagios-1.2]$
0
 

Author Comment

by:jibranilyas
ID: 11943807
got the fix for the pervious error

everything is working now except that I didn't get an "etc" directory under nagios folder.. The documentation mentioned that you will have 5 directories   bin, etc,sbin,share,var    i didn''t have etc.  The etc dir  should have "Main, resource, object, and CGI configuration files ... on my terminal , i did see  

*** Main program, CGIs and HTML files installed ***
 
You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

please inform me if this is normal..
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 11944845
I didn't even get those with a RPM install of nagios.
Look in /etc/nagios/  for the config files.
0
 

Author Comment

by:jibranilyas
ID: 11945007
i ran

make install-config

that threw some config files in the etc dir...
btw, i manually created the etc dir..
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

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

831 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