Solved

Access to Root in REd Hat

Posted on 2004-08-30
8
462 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

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

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

867 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

21 Experts available now in Live!

Get 1:1 Help Now