Announcement Announcement Module
Collapse

myhosting.com Forum Guidelines

Welcome to the myhosting.com Forums! The purpose of this forum is to allow you to discuss topics relating to hosting and topics of interest with other myhosting.com Customers. The primary focus should relate to issues not generally included in our Wiki or Control Panel, or information not provided by our Customer Support Team. Some examples include programming and coding support, web site design ideas and SEO practices.

The forum is not meant as a replacement to our Wiki or Customer Support. We highly recommend searching our Wiki before posting on the forum. Also, if you have a question for our Customer Support team, please contact them as you would normally.

We ask that if you have any complaints or questions relating specifically to your account, that you address them to our Customer Support department. Do not post personal account information such as passwords or other sensitive and private information the forum, as this type of information is best kept secret. Also, please be respectful of other users and refrain from defamatory comments or use of coarse language.

We will visit the forum from time to time, and contribute to various topics. We reserve the right to delete any posts which are deemed offensive or against the spirit of the forum. Any spamming or illegal activity will not be tolerated. We also reserve the right to block any user who violates these guidelines.

To get started, we welcome you to sign up at our User Management site. Any account created there will have access to these forums, our Wiki, our Ideas site and commenting permission on our Status Blog.
See more
See less
Super-user Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Super-user

    Hi all,

    With my linux VPS I log in to SSH using root and $HOME is /root. Is it ok for me to log in as the super-user / admin like this or should I create a separate user accounts to work with, even though the only user is myself?

    Thanks

  • #2
    One of the biggest security holes you could open on your server is to allow directly logging in as root through ssh, because any cracker can attempt to brute force your root password and potentially get access to your system if they can figure out your password.

    It’s much better to have a separate account that you regularly use and simply sudo to root when necessary. Before we begin, you should make sure that you have a regular user account and that you can su or sudo to root from it.
    details:
    Security Tip: Disable Root SSH Login on Linux - How-To Geek
    Disable ssh root direct login

    Hope this helps!

    Comment


    • #3
      OK thank you. I have created a new user so how do I give the SUDO permission to this user?

      thanks

      Comment


      • #4
        just enter "sudo" before any command you run if the command requires administrative (root) access. So using apt-get to install the php package for example you would enter: "sudo apt-get install php" . You'll be prompted for the user password, after which it will process the command.

        Comment


        • #5
          Originally posted by jeremya View Post
          just enter "sudo" before any command you run if the command requires administrative (root) access. So using apt-get to install the php package for example you would enter: "sudo apt-get install php" . You'll be prompted for the user password, after which it will process the command.
          Ok thanks so does that mean that any new account can automatically use 'sudo' - ie doesn't first require permission to use sudo? Is there some harmless command I can use to test that sudo works ok for my new user?

          Thanks

          Comment


          • #6
            Here are some good tutorials about sudo with some usage example on it
            sudo - Linux Command - Unix Command
            Understanding and using sudo in Unix or Linux (with examples)

            Comment


            • #7
              Originally posted by suwunk View Post
              Here are some good tutorials about sudo with some usage example on it
              sudo - Linux Command - Unix Command
              Understanding and using sudo in Unix or Linux (with examples)
              OK thank you.

              Comment

              Working...
              X