New Folder and give permission to the root directory under mac

In the root directory, you will find that you can not create folders, even if using the command can not create directory:

1. Modify auto_master

Compiled  /etc/auto_master file, comment out or remove begin with / home of the line to save.

Input terminal

sudo vim /etc/auto_master

# 

# Automounter master map 

# 

+auto_master        # Use directory service 

/net            -hosts      -nobrowse,hidefromfinder,nosuid 

#/home          auto_home   -nobrowse,hidefromfinder   //注释掉本行 

/Network/Servers    -fstab 

/-          -static 

  Save, in order to take effect, we need to execute the following command (if fails to restart the computer)

sudo automount -vc

The following message appears, then modify / directory permissions success

automount: /net updated

automount: /home unmounted

 Now enter the / directory, execute:

mkdir the Data sudo (the Data directory name)

Guess you like

Origin www.cnblogs.com/Jokerguigui/p/11670957.html