Mac OS X mkdir: /home/prod: Operation not supported

在Mac的home目录创建prod目录时提示: Operation not supported

后在网上查了一下,是Mac的设计初衷不让修改home目录,但也有解决方案。

sudo vim /etc/auto_master

before:

# Automounter master map
+auto_master            # Use directory service
/net                    -hosts          -nobrowse,hidefromfinder,nosuid
/home                   auto_home       -nobrowse,hidefromfinder
/Network/Servers        -fstab
/-                      -static

after: 

# Automounter master map
+auto_master            # Use directory service
/net                    -hosts          -nobrowse,hidefromfinder,nosuid
#/home                   auto_home       -nobrowse,hidefromfinder
/Network/Servers        -fstab
/-                      -static

to have the change take effect without a reboot:

sudo automount