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 Connect To Your Server Using SSH

web hosting

SSH is about as cool as sliced bread, if maybe not a little bit more so. Seriously, it’s a great way to get at your server’s terminal shell, which—as we all know—is the hotbed of power. From there you can change just about any aspect of the server,...

Sep 28th, 2011 Read more

Keep Your Site Safe – Learn What Not to Do

web hosting

Let’s face it: The Internet isn’t the golden playground it once was, where all could go and have their swing in peace. In fact, it’s now so overrun with bullies and miscreants that it’s a wonder we haven’t decided to swap school districts yet!...

Sep 23rd, 2011 Read more

How And When To Offer SSH Access To Your Customers

offer-ssh-access

If you’re running on a Unix or Linux server, then you likely access your files systems via SSH on a daily basis. However, this might be well and fine for an administrator like you, but should you also be offering the same access to your customers? SSH...

Sep 22nd, 2011 Read more

How To Deal With A Possible Intruder On Your Server

web hosting

You’re cruising through your server’s inner network one fine day, when all of a sudden you notice an unfamiliar name accessing your files. This user may have come through SSH, or any other access method, but no matter the entry port, you certainly...

Sep 21st, 2011 Read more

Secure Shell Security Tips

web hosting

Secure Shell or SSH is a security measure that was designed to protect websites from external threats. In the past, users would connect to their servers using Telnet. Now that servers a no longer just down the hall, SSH adds an extra layer of encryption...

Aug 4th, 2011 Read more

Web Hosting Security – Difference Between SSL, TLS and SSH

web hosting

One of the most important aspects of web hosting security is the protocol that is used to transfer files from the web server to a visitor’s computer. This is especially true for web sites that frequently engage in eCommerce activity. Understanding...

Oct 20th, 2010 Read more

Securing FTP Connections

web hosting

File Transfer Protocol or simply FTP, is a feature that has become very popular on the web hosting market.  FTP offers capabilities the email system can’t touch, allowing you to transfer large files over the internet from one computer to another. ...

Nov 24th, 2009 Read more

Protect Your Site From Maliciously Activities

web hosting

Thousands of vulnerable websites are exploited everyday.  In many cases, your site can be victimized without you having the slightest clue.  Unfortunately, there are also instances in which your site can be used in malicious ploys without being directly...

May 7th, 2009 Read more

Stay in Touch with the Geeks

Our Community

Facebook
2273 Fans
Twitter
1420 Followers
FeedBurner
64 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