Understanding The Root User And How to Obtain It



web hosting

If you’re new to the realm of dedicated web hosting, you may suddenly be inundated with a bunch of terms with which you’re unfamiliar. Believe it or not, there’s a lot more to web hosting than just disc space, bandwidth, and hardware: The Linux operating system underneath comes with a heap of terminology you’ll have to become acquainted with, as well as many different quirks and methods that must be learned about.

Don’t sweat it, though, Grasshopper. We understand what you’re going through, and to help you out, we’ve got a guide to one of Linux’ most important aspects ready to go: If you’re confused about what the root user does, keep reading. All is revealed in full detail just after the break.

So What is Root?

Just as a plant has foliage and flowers at the top, so does it have roots that anchor it beneath the surface. Linux operates in the same way, allowing users to perform surface level modifications to the system at the top, while a deeper administrative user (this is the “root”) sits just below, managing all the vital organs of the operating system. Most of everything you do will be done outside the root user, but when you need to do some heavy duty file management, or install a new script, you’ll want to dip below the surface and tap into the core of things.

Why Should I Care About The Root? Do I Need It?

The root is important, because the alternative is somewhat frightening: Imagine letting all the tenants of your dedicated server have total administrative access all the time. It’s a scary though, no? Who knows what an absentminded user could accidentally do. With that in mind, root is built into your system to ensure you only mess with the foundation when you want to. It also ensures only certain people have root access, and even then, only when they need it.

How Do I Go Rooting?

Simple! In most Linux systems (Red Hat, SUSE, CentOS, etc.) simply SSH to your server shell, and type the following command:

su

It’s that easy! Other distros, like Ubuntu Server, allow access to the superuser in slightly different ways. For example, with these, there is no permanent root access, but rather a single command to type before performing a root action. This command is:

sudo

Basic SSH Commands

Here is a list of some of the more common SSH commands.

<command> -h                 # The -h flag provides help on a command
ls                           # List the contents of the current directory
cd <directory or full path>  # Change to that directory or path
cp <source> <destination>    # Copy the source file to the destination
cp -r <source> <destination> # Copy the source directory to the destination directory
mv <source> <destination>    # Move the source file to the destination
mkdir <directory name>       # Create a new directory
pico <file>                  # Edit file in a friendly, easy to use file editor
grep <text> <file>           # Search for text within a file
wget <URI>                   # Download the file at the given URI to the current path
tar -xz -f <file>            # Un-gzip and un-tar the given *.tgz or *.tar.gz file
rm <file>                    # Delete the file
rm -r <directory>            # Delete the directory and all contents
killall <program name>       # Kill all running processes of the program
ps                           # Show running processes
top                          # Show running processes in a graphical frontend
netstat                      # Show all current network connections
du                           # Show disk usage

Need more commands? I recommend David Coe‘s http://www.sshcommands.co.uk/, an easy to understand list of SSH Commands (with examples).

Tags: , , , , , , , , ,

How to Install ModSecurity in CentOS

modsecurity-centos

If you’re the proud owner of a dedicated server running CentOS (Seems like most people are favoring the Linux distro these days!) then you owe it to yourself to install a simple utility called ModSecurity. The service is an application firewall that...

Oct 2nd, 2011 Read more

Choosing The Right Linux Distro For Your LAMP VPS

linux-distro-lamp

Running a LAMP VPS on your server means needing to pick the perfect Linux operating system to go along with your server space. It’s a tough decision, and considering almost every expert you talk to will send you to their favorite distribution, you can...

Sep 22nd, 2011 Read more

CloudLinux 6.1 Launches

cloudlinux

A couple days ago CloudLinux, the cloud-based operating system developer, released the 6.1 edition of their flagship product—an hunk of code appropriately titled “CloudLinux 6.1.” Obvious pieces of information aside, what is CloudLinux 6.1 and why...

Sep 17th, 2011 Read more

Choosing Between cPanel and Plesk

Choosing Between cPanel and Plesk

If you’ve been into web hosting long, you may know of all the different control panels. You know their nuances and differences, as well as the strengths of each: But the sad truth is, we often forget these things, and wind up using the same control...

Sep 13th, 2011 Read more

Move Over cPanel: Make Room for Kloxo

web hosting

Formerly known as Lxadmin, Kloxo is a control panel that usually accompanies CentOS Linux-based VPS hosting packages.  Offering a comprehensive web-based interface, the software enables various administrative tasks including database administration,...

Jun 15th, 2009 Read more

cPanel Then and Now

web hosting

cPanel is an award-winning control panel you will find offered in numerous web hosting plans.  Its web-based Graphical User Interface is designed to provide users with the ability to handle website administration with ease, a reason why this control...

Feb 13th, 2009 Read more

Control Panels: cPanel vs. Ensim

web hosting

What often sets web hosting companies apart is the software they offer to their clients.  Control panels are one of the most sought after software components and there are a wide variety available.  In this article we will focus on two of the leading...

Oct 13th, 2008 Read more

Stay in Touch with the Geeks

Our Community

Facebook
2274 Fans
Twitter
1422 Followers
FeedBurner
60 Subscribers

Submit News

Do you have an exciting story and want the world to hear it?

Submit a Story

  • 15K monthly visitors
  • PageRank 6
  • Alexa 11,000