Solved

Access to Root in REd Hat

Posted on 2004-08-30
8
459 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
 

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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
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…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

708 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

15 Experts available now in Live!

Get 1:1 Help Now