5.1.7 Ensure No World Writable Files Exist in the Library Folder

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 /System/Volumes/Data/Library folder:

$ sudo /bin/chmod -R o-w /Library/<baddirectory>

example:

$ sudo /bin/chmod -R o-w /Library/baddir

See Also

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

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: 1d154ece3d7e97ca5d89639caece9c073c50a8f6193e8f9f5668c378a8b24ef4