GoWebsite.com provides Domain Registration
Website Hosting, On-Line Shopping Carts, SEO
Blog Hosting, Email Accounts, Security Certificates,
Merchant Accounts & other Website Products.
Free setup! Speak with us anytime: 480-624-2500

How can I log in as 'root' on my server?

By default, you cannot log in to your server remotely using "root." You must first login with your setup User ID and then change the logged in user to "root". If you need "root" access on your server, you have two options. You can use the su - command once you have logged in with your User ID, to switch to root access. Alternatively, you can login your USER ID, switch users as mentioned above, and then modify the sshd_config file to permit root access upon the initial login, without having to change users in each time you require root access.

Some of the information in this article is advanced material we make available as a courtesy. Please be advised that you are responsible for properly following the procedures below. Customer Support cannot assist with these topics.

To Login and Change to use the su - Command

The su (short for substitute user) command makes it possible to log in as root temporarily while you are logged in with your normal User ID.

  1. Log in to your server with your regular user account.
  2. Type:
    su -
  3. Enter your root password. Your root password is the same as the password for your normal User ID.

To Allow Root User Access Upon Login, Modify the sshd_config File to Permit Root Access

  1. Log in to your server and switch to root using the su - command.
  2. Using an editor, edit /etc/ssh/sshd_config.
  3. Locate the line:
    PermitRootLogin no
    Then edit it to read:
    PermitRootLogin yes
  4. Locate the line:
    DenyUsers root
    Then edit it to read:
    #DenyUsers root
  5. Locate the line:
    DenyGroups root
    Then edit it to read:
    #DenyGroups root
  6. Save the file.
  7. Restart SSH by issuing the following command:
    /etc/init.d/sshd restart
Domain Registration
Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. Everything you need to get online - FREE with your domain.
Website Builder
For as little as $3.89 per month you can build your Website online with Website Builder using our easy to use professional templates.
Play Video - Demo
Quick Shopping Cart
Build and run your own successful online store in minutes. You're just five easy steps away!
Shopping Cart works with Google® and eBay®
Play Video
Website Hosting
Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with
a SSL Certificate