Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Webmin Administrator's Cookbook

You're reading from  Webmin Administrator's Cookbook

Product type Book
Published in Mar 2014
Publisher
ISBN-13 9781849515849
Pages 376 pages
Edition 1st Edition
Languages
Author (1):
Michal Karzynski Michal Karzynski
Profile icon Michal Karzynski

Table of Contents (19) Chapters

Webmin Administrator's Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Setting Up Your System 2. User Management 3. Securing Your System 4. Controlling Your System 5. Monitoring Your System 6. Managing Files on Your System 7. Backing Up Your System 8. Running an Apache Web Server 9. Running a MySQL Database Server 10. Running a PostgreSQL Database Server 11. Running Web Applications 12. Setting Up an E-mail Server Index

Disabling root login over SSH


Allowing the root user to log in over SSH is a potential security vulnerability. An attacker may try to break into your system by trying every password for the root user. It's recommended to disallow the root user's access over SSH and to log in as another user with the sudo privileges to perform administrative tasks.

How to do it...

Perform the following steps to disable root login:

  1. Navigate to Servers | SSH Server | Authentication.

  2. Answer No to the Allow login by root? question.

  3. Click Save.

  4. Back on the SSH Server module screen, click Apply Changes.

How it works...

Webmin updates the SSH configuration file (/etc/ssh/sshd_config) by setting PermitRootLogin to no. From now on, SSH will treat every password entered for the root user as incorrect.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}