How to Require a Password on Ubuntu 18.04 - A Simple Guide
How to Require a Password on Ubuntu 18.04
Requiring a password on Ubuntu 18.04 is essential for ensuring the security of your system. Here's a simple guide to help you set up password requirements:
- Open the Terminal by pressing Ctrl + Alt + T
- Enter the command
sudo passwd root
to set the password for the root user - Follow the prompts to set a strong password
- Next, enter the command
sudo nano /etc/ssh/sshd_config
to edit the SSH configuration file - Find the line
PermitRootLogin without-password
and change it toPermitRootLogin yes
- Save the changes and exit the editor
- Finally, restart the SSH service by entering
sudo service ssh restart
- Your Ubuntu 18.04 system will now require a password for root access
By following these steps, you can enhance the security of your Ubuntu 18.04 system and protect it from unauthorized access.
What is the password problem?
The password problem refers to the challenges and vulnerabilities associated with creating, managing, and securing passwords, which often leads to weak or reused passwords and increased security risks.
Generate strong passwords tool
Online web, mobile resources for generating strong passwords...
Did you find this page useful?