Frage

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?
War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit apple.stackexchange
scroll top