Disabling root login will force any attempted hackers to use 2 passwords making the odds of him breaking in even harder. Now we know you don't have to use two seperate passwords but if you don't you are making it easier for someone to break into your server.
If you're using cPanel make sure you add your anotheruser user to the 'wheel' group so that you will be able to 'su -' to root, otherwise you may lock yourself out of root.
Set up anotheruser if you haven't already got one:
1. Login to your server via SSH as root.
2. Type: pico -w /etc/ssh/sshd_config
3. Find this line:
PermitRootLogin yes
Uncomment it so it looks like
PermitRootLogin no
4. Save the file
Ctrl+X then Y and enter
5. Type: groupadd anotheruser
6. Type: useradd anotheruser -ganotheruser
7. Type: passwd anotheruser passwordhere
On a CPanel system, you can (MUST) now go into root WHM and add anotheruser to the wheel group. After you do this, you will have to login as anotheruser then you will 'su -' to get to root.
Original: http://www.ukwebmasterforums.com/t4912-disabling-direct-root-login-ssh.html
Web Hosting UK (http://www.session9.co.uk/ )
Webmaster Forums ( http://www.ukwebmasterforums.com/ )
Web Hosting Affiliate
( http://www.session9.co.uk/web-hosting-affiliate/ )
Domain Reseller (
http://www.domainvendor.co.uk/ )
Web Hosting UK (
http://www.session9.co.uk/ )
Webmaster Forums (
http://www.ukwebmasterforums.com/ )
Web Hosting Affiliate
( http://www.session9.co.uk/web-hosting-affiliate/ )
Choosing Between Free Web Site Hosting And Paid - by
Lucas HeijnThere are advantages and disadvantages with everything in life. The same could be said for free or paid web site hosting. The advantage of free hosting is of course that it is free. This sort of hosting such as GeoCities is great for personal and family sites.
Don't Let Your Websites Become Hosting Nightmares - by
Dan ThompsonWhat's not so good is if you have all your sites in one account, hosted on one server. When that granddaddy of all nightmares happens - the server goes down, all your sites go down with it. Thinking about that should keep you up at night.
Finding A Good Web Hosting Service - by
Martin KleisIf you are new to all of this, it makes good commercial sense to find a web hosting company that will offer you a plan that will best suit your business. Get it wrong and you could be committing
Top Website Marketing Mistakes - by
Martin KleisBad Design
Having a good search engine ranking is not enough to retain the interest of your traffic if your website is designed badly. One look to see how clumsily it has been put together will only serve to make
Bandwidth Mistakes - by
Martin KleisBandwidth aka data transfer is measured by your web host as the total amount of data that has been viewed by your site visitors; this figure is usually shown in gigabytes.
Byte Conversion
1KB is 1024 bytes
1MB is 1,048,576 bytes