Hiding the user Library folder in High Sierra

akarneboge
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

#!/bin/bash

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.

0 REPLIES 0