Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

6.1.5 Guest Home Folder Misdirection #17

Open
chrisleduc opened this issue Aug 5, 2022 · 0 comments
Open

6.1.5 Guest Home Folder Misdirection #17

chrisleduc opened this issue Aug 5, 2022 · 0 comments

Comments

@chrisleduc
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant