I want to create a directory 'administrator' in my /home/ directory but it won't allow me as it alway returns the error Operation not supported. Any ideas?

Roberts-MacBook-Pro:home robert$ pwd
Roberts-MacBook-Pro:home robert$ sudo mkdir administrator
mkdir: administrator: Operation not supported

/home is used as a mount point for the automounter (see /etc/auto_master and /etc/auto_home), you can't create your own directories in there.

If you are looking for a place to store common administrator stuff shared between different administrators, create a directory in either /Users/(any admin account) or /usr/local/share and make it accessible to all members of the admin group.

  • 1
    That doesn't answer the question. What if I need to create a directory in there? Can I put something somewhere to get automounted? Can I delete the auto_home line from auto_master? – mjaggard Mar 11 at 9:57
  • @mjaggard Primarily whatever makes you create a directory there is broken and needs to be fixed. A typical case is software ported from Linux which makes too many assumptions about filesystem layouts. But if you don't mind having to edit auto_master regularly after OS updates (and don't mind the risk that the automounter kicks in before you can do this and does whatever it likes with your directory) removing the line from the config file should work as well. – nohillside Mar 11 at 10:07
  • 1
    Brilliant Apple answer. We didn't put the aerial in the wrong place, you're holding it wrong! Thanks for the info though. What is /home used for?! – mjaggard Mar 12 at 11:32
  • @mjaggard You can‘t install software in /dev either (or in /proc on Linux), so some standards are just, well, standards. – nohillside Mar 12 at 18:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .