wtfutil / wtf

The personal information dashboard for your terminal
http://wtfutil.com
Mozilla Public License 2.0
15.71k stars 799 forks source link

update firewall module to use sudo ufw status properly #1700

Open docsmooth opened 1 month ago

docsmooth commented 1 month ago

This re-orders the "ufw status" logic to assume it's being run as a regular user, and use "sudo /usr/sbin/ufw status". If the username is root, then instead use simply "ufw status".

This update does NOT take variable elevation commands like pbrun/dzdo/pbsudo into account. I may add that in a future update.