Mac OS X mkdir: /home/test: Operation not supported
Hmmm, trying to create a directory under '/home' on a Mac?
Well, Apple doesn't want you to (with good reason, automounter owns this dir, which makes it easier to do NFS mounts and such) so you shouldn't muck with it but if you really just 'have to do it', here is how you can.
Basically:
Edit /etc/auto_master and remove or comment out the line that starts with "/home".
example:
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 /- -staticafter:
# Automounter master map +auto_master # Use directory service /net -hosts -nobrowse,hidefromfinder,nosuid #/home auto_home -nobrowse,hidefromfinder /Network/Servers -fstab /- -staticto have the change take effect without a reboot:
sudo automount
mkdir /home/test
ls -l /home/
total 0
drwxr-xr-x 3 root admin 102 Aug 10 11:33 test
NOTE: I wouldn't do anything 'important' with this directory as it's easy to forget you altered this and an upgrade will plow over this directory, removing all data. (this dir is also not included in any Time Machine backups.
official solution- http://support.apple.com/kb/TS3346?viewlocale=zh_CN
Mac OS X v10.6:后续 Active Directory 用户收到警告“此时您无法登录到用户账户(用户名)”
受影响的产品
Mac OS X 10.5, Mac OS X 10.6问题的表现
Active Directory 用户在尝试登录时,可能会收到消息“此时您无法登录到用户账户(用户名)”。在同一台服务器的不同共享点上具有个人目录的后续 Active Directory 用户可能会遇到此问题。如果 Mac OS X 客户端重新启动则可登录。解决
编辑受影响 Mac OS X 用户的 /etc/auto_master 文件。如下所示对 /Network/Servers 目录做出标注:# Automounter master map # +auto_master # Use directory service /net -hosts -nobrowse,hidefromfinder,nosuid /home auto_home -nobrowse,hidefromfinder #/Network/Servers -fstab /- -static保存文件,然后重新启动。
没有评论:
发表评论