Hiding the user Library folder in High Sierra

New Contributor II

I thought I would share this for everyone. It seems that in High Sierra, using chflags nohidden on the user's Library folder no longer works. It will work on any other file/folder in the file system (non-SIP) but not the user's home folder Library. So, I whipped up this script to be run through the jamf binary


for username in `ls -d /Users/*/Library`; do xattr -d com.apple.FinderInfo $username; done

This strips the extended attribute completely for all existing home directories.