I am currently trying to make a hidden user on Yosemite.
I have tried to follow tutorials from this site, however when I run the command
sudo dscl . append /Groups/<real_name> GroupMembership <user_name> I get this error:
/System/Library/LaunchDaemons/com.apple.DirectoryServicesLocal.plist: No such file or directory.
I have also done the command
sudo dscl . create /Users/hiddenuser IsHidden 1 as shown here: How to add hidden user, yet I get the same error.
How would I fix this? Is it as simple as running
sudo touch /System/Library/LaunchDaemons/com.apple.DirectoryServicesLocal.plist or is it more complicated then that?