
Wiki World
Security
Set label on folder
semanage fcontext -a -t samba_share_t <complete-path-to-folder> Se label also on subfolder and files
semanage fcontext -a -t …
Is the firewall running
firewall-cmd --state Show default zone
firewall-cmd --get-default-zone list current settings
firewall-cmd --list-all open port …
Scan ports on IP
nmap -sT <IP> Scan ports on subnet
nmap -sT <Net/cidr> Scan for vulnerabilities
nmap --script vuln <IP> Scan for …
UFW is the default firewall in Ubuntu based system and is also available on the Raspberry-Pi.
Install UFW apt install ufw Examples Allow SSH
ufw allow …
Read more ⮕
commands run as root unless otherwise stated.
Set password
passwd <username> Lock user
passwd -l <username> Unlock user
passwd -u …