6.1.5 Guest Home Folder Misdirection
Opened this issue · 0 comments
chrisleduc commented
The guest home folder is detected with:
ls /Users/ 2>&1 | grep -c Guest
This can result in misdetection if a local user account is contains "Guest". For example if you create user accounts with the name "Kiosk Guest Account" or "Guest Campus".
These are not Guest accounts in a strict sense. Therefore the should not be counted as a detection. To fix this, replace the line with
ls /Users/ 2>&1 | grep -cx Guest
This will ensure a whole line matching and solve the issue.