This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Creating strong passwords i would recommend using a browser extensions as password generator. | |
-Configuring Auto-Update: | |
apt install unattended-upgrades | |
systemctl enable unattended-upgrades | |
systemctl status unattended-upgrades | |
nano /etc/apt/apt.conf.d/50unattended-upgrades |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Set up an non-privileged user and sudo | |
echo -n "Enter the username: " | |
read username | |
echo -n "Enter the password: " | |
read -s password | |
adduser "$username" | |
echo $username:$password | chpasswd | |
#echo "$password" | passwd "$username" --stdin |