skimpydog.com Forum Index Redhat Base RHEL |
Browsing this Thread:
1 Anonymous Users
Bottom Previous Topic Next Topic |
|
|
|
---|
Poster | Thread | Rated: 1 Votes |
---|
|
RHEL | #1 |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Webmaster
Joined: 2007/6/10
From Dallas, TX
Posts: 79
Level : 7 HP : 0 / 170 Group:
Webmasters Registered Users |
Redhat is too easy to use!
RHEL - Redhat Enterprise Linux - This is NOT OpenSource! or Free! - But some of the aps that it comes with are... Nonetheless, those of you who are not used to using linux, that are at least making the attempt to learn should know that you should NEVER login directly to your server using "root". Create another account for you to "su" from that user. One of my popular account names, which is an old-skool BSD rip off, whom is "toor". So what you do is login to the server via ssh as toor (You of course have to create the user first). then su, put in the password, and BAM!
Just that easy. Now you are logged in as toor, and su'ed as root. To exit from root, use exit:
One of the complaints that I commonly hear is "But I can't run my applications" - BOO! You may! There is a lil thang called "Environment Variables" whereas locations such as /sbin are generally only called by the "Super User" - su - whereas the environment variables for root include /sbin within it's path. This is to say if you set the variables for the user you are logged in as, things will work seamless - try
Your Environment Variables will be stored at "$home/.bash_profile". The easy way to add to this list of Environment Variables is to use "vi", and edit the file directly. -- For example, if you want to run "/sbin/service httpd restart", then you can & may. I won't stop you. But I like to make my life a bit easier, and just run "service httpd restart". Therefore when you have to string it all out, it flows better: To bring down a server load on a cPanel box, then to view the status:
Now imagine if you had to put a /sbin in there - just too much hassle. - so was writing this, but you get the idea. |
||||||||||
Posted on: 2007/7/19 19:47
|
Top Previous Topic Next Topic |
|