I would like to mount /Users to /home on my macbook (Catalina Version 10.15.6).

I have three systems: an Ubuntu laptop, a rhel server and a macbook. I have some python scripts (written by others) that uses configuration files where full file paths need to be mentioned (no ~). I don't like changing the home path in the scripts from /Users/x to /home/x multiple times.

There's this question on SO about the same thing but three years have passed and I wonder if anything has changed. The person who wrote the accepted answer himself recommend doing something else and I can not do that. I am genuinely concerned about two things:

  1. Automatic back up of this folder.
  2. Will a system update wipe this folder out?

Personally I'm convinced that any software requiring hard coded paths to home directories is broken and needs to be fixed, but I understand that this isn't possible sometimes. So in your situation I would just disable the auto mounter for /home (see How to remove '/home' directory?) and then symlink /home to /Users. This also solves the backup issue.

PS: Biggest risk probably is that a future update will rewrite auto_master but that you can easily fix again.

  • Seems you can not just create a symlink sudo ln -s /Users/ /home returns ln: /home: Read-only file system. I think you have to disable SIP apple.stackexchange.com/questions/208478/… . – rivu Sep 25 '20 at 9:42
  • @rivu Uhh, with SIP and Catalina this may become a challenge anyway. – nohillside Sep 25 '20 at 9:50

You must log in to answer this question.

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