Reprinted from: http://ju.outofmemory.cn/entry/283070
Recently, want to install a program under the Home/home directory under the Mac, found that no permissions, even the use of the sudo command can not create the program directory, on the internet for half a day to find the following ways to improve the Mac/home directory permissions.
Compile the/etc/auto_master file, comment out or remove the line that begins with/home and save.
sudo vim /etc/auto_master
Comment out the/home line as follows:
## automounter master Map# +auto_master # use directory Service/net -hosts -nobrowse,hidefromfinder ,nosuid#/home Auto_home-nobrowse,hidefromfinder /network/servers< Span class= "PLN" > -fstab/--static
Save, in order to make it effective, you need to execute the following command (restart the computer if it fails)
sudo automount -vc
The following information appears, indicating that the Modify/home directory permission succeeded
automount: /net updatedautomount: /home unmounted
Now go to the/home directory and execute:
sudo mkdir test
The test directory is the directory you want to create under/home.
Mac System home Directory permissions modified "reprint"