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.
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.