Wiki World

Security

SElinux

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 …

Firewalld

Is the firewall running firewall-cmd --state Show default zone firewall-cmd --get-default-zone list current settings firewall-cmd --list-all open port …

Nmap

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

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 ⮕

User

commands run as root unless otherwise stated. Set password passwd <username> Lock user passwd -l <username> Unlock user passwd -u …