Space missing in $CURRENT_USER code in adoc files #139

Closed
opened 2026-01-19 18:29:22 +00:00 by michael · 0 comments
Owner

Originally created by @cl2solutions on GitHub.

For CIS ID os_show_filename_extensions_enable: I believe there is a space missing in the CURRENT_USER variable. This is displayed only in the adoc/guidance files. Compliance scripts aren't affected.

Currently:
CURRENT_USER=$( /usr/sbin/scutil <<< "show State:/Users/ConsoleUser" \| /usr/bin/awk '/Name :/ && ! /loginwindow/ { print $3 }' )

Should be:
CURRENT_USER=$( /usr/sbin/scutil <<< "show State:/Users/ConsoleUser" \ | /usr/bin/awk '/Name :/ && ! /loginwindow/ { print $3 }' )

Focused:
currently: ...ConsoleUser" \| /usr/bin/awk...
should be: ...ConsoleUser" \ | /usr/bin/awk...

Device Info:
2021 14-inch MacBook Pro (M1 Pro)
macOS Sonoma 14.1 (23B74)

Originally created by @cl2solutions on GitHub. For CIS ID os_show_filename_extensions_enable: I believe there is a space missing in the CURRENT_USER variable. This is displayed only in the adoc/guidance files. Compliance scripts aren't affected. **Currently:** `CURRENT_USER=$( /usr/sbin/scutil <<< "show State:/Users/ConsoleUser" \| /usr/bin/awk '/Name :/ && ! /loginwindow/ { print $3 }' )` **Should be:** `CURRENT_USER=$( /usr/sbin/scutil <<< "show State:/Users/ConsoleUser" \ | /usr/bin/awk '/Name :/ && ! /loginwindow/ { print $3 }' )` **Focused:** currently: `...ConsoleUser" \| /usr/bin/awk...` should be: `...ConsoleUser" \ | /usr/bin/awk...` **Device Info:** 2021 14-inch MacBook Pro (M1 Pro) macOS Sonoma 14.1 (23B74)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: usnistgov/macos_security#139