5.1.4 Check Library folder for world writable files

Information

Software sometimes insists on being installed in the /Library Directory and have inappropriate world writable permissions.

Rationale:

Folders in /System/Volumes/Data/Library should not be world writable. The audit check excludes the /System/Volumes/Data/Library/Caches and /System/Volumes/Data/Library/Preferences/Audio/Data folders where the sticky bit is set.

Solution

Run the following command to set permissions so that folders are not world writable in the /Library folder:

$ sudo chmod -R o-w /System/Volumes/Data/Library/<baddirectory>

example:

$ sudo chmod -R o-w /System/Volumes/Data/Library/baddir

See Also

https://workbench.cisecurity.org/files/3195

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6, CSCv7|14.6

Plugin: Unix

Control ID: 8f2ab28a930dd5e1092293c7346a57906172c79d70a9a66715717b6fc3752245