mac 在 home 目录下创建文件夹
1、修改auto_master
编译 /etc/auto_master 文件,注释掉或者移除以 /home 开头的那一行,保存。
sudo vim /etc/auto_master
注释掉 /home 哪一行,如下所示:
% cat /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
2、回到根目录,创建文件夹
cd / (这一步很重要)
sudo automount(必须在/目录下执行)
mkdir /home/admin
3. 赋予读写权限:
chmod 777 /home/admin
原文地址:https://www.jianshu.com/p/820375b3567e
    If you’re going to reuse code, you need to understand that code!

 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号