Welcome to the myhosting.com Forums.
-
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
-
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!
-
OK thank you. I have created a new user so how do I give the SUDO permission to this user?
thanks
-
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.
-Jeremya
-

Originally Posted by
jeremya
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
-
-

Originally Posted by
suwunk
OK thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Version 4.1.7
Copyright ©2000 - 2013
All times are GMT -4. The time now is 09:17 PM.