I spent some time building this query so I thought I’d write it down. To find out which accounts in /etc/passwd with a UID greater than 500 have anything other than nologin or false set as their login shell, combine grep & awk to print them out: grep -v: exclude resultsawk -F: use colon as … Continue reading Find local accounts with shell login
The post Find local accounts with shell login appeared first on Technicus.