Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Ubuntu Server

You're reading from   Mastering Ubuntu Server Master the art of deploying, configuring, managing, and troubleshooting Ubuntu Server 18.04

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781788997560
Length 552 pages
Edition 2nd Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Jay LaCroix Jay LaCroix
Author Profile Icon Jay LaCroix
Jay LaCroix
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Deploying Ubuntu Server 2. Managing Users FREE CHAPTER 3. Managing Storage Volumes 4. Connecting to Networks 5. Managing Software Packages 6. Controlling and Monitoring Processes 7. Setting Up Network Services 8. Sharing and Transferring Files 9. Managing Databases 10. Serving Web Content 11. Learning Advanced Shell Techniques 12. Virtualization 13. Running Containers 14. Automating Server Configuration with Ansible 15. Securing Your Server 16. Troubleshooting Ubuntu Servers 17. Preventing and Recovering from Disasters 18. Using the Alternate Installer 19. Assessments 20. Other Books You May Enjoy

Managing passwords and password policies

In this chapter, we've already covered a bit of password management, since I've given you a few examples of the passwd command. If you recall, the passwd command allows us to change the password of the currently logged-in user. In addition, using passwd as root (and supplying a user name) allows us to change the password for any user account on our system. But that's not all this command can do.

One thing I've neglected to mention regarding the passwd command is the fact that you can use it to lock and unlock a user's account. There are many reasons why you may want to do this. For instance, if a user is going on vacation or extended leave, perhaps you'd want to lock their account so that it cannot be used while they are away. After all, the fewer active accounts, the lower your attack surface. To lock an account...

You have been reading a chapter from
Mastering Ubuntu Server - Second Edition
Published in: May 2018
Publisher: Packt
ISBN-13: 9781788997560
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 $19.99/month. Cancel anytime
Banner background image