mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
Inconsistent Output with Guest User Directory Detection Script #45
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mani2care on GitHub.
Hi
While running a command to detect Guest user directories under /Users, I encountered inconsistent results.
Commands executed:
bash : /bin/ls /Users/ | /usr/bin/grep -c "Guest"
Issue:
The command returns 1
i did not have any user name like Guest and i have only the TempGuest the grep is not fetching the accuriet result with the user name.
Let me know if you need
i have tested with macOS sequoia 15.5 version.
@brodjieski commented on GitHub:
Hello! This check is derived from the CIS benchmark and uses the method that they include. The team at CIS is going to review this rule and check and we will update accordingly when/if any changes are made.