So the other day I was trying to configure a Mac server to export the /Users directory and I kept getting the error mentioned above ‘No path to directory’, which was odd, but it seems that NFS is not a fan of aliases, and I had moved the Users directory onto another hard drive (as I had switched to faster SSD’s for the System Drives) and aliased it to /Users
The solution was to share the new location of the Users folder which I had on a Volume named Data, so sharing /Volumes/Data/Users as Users served the same purpose as I was looking for, and NFS was happy with this.
So long story short, if your NFS shares are throwing up this error, look for aliases and reshare the direct location.
If you have experienced the error mentioned above, particularly when using a shared computer then the chances are that the directories listed relate to a user account or area of the filesystem that you don’t have access to, or they have been deleted.
To resolve the problem, it is very simple, follow the instructions listed below
Once initialised, type the following
and hit enter, this will open the editor and enable you to remove the directories that are causing the error.
save the file and restart matlab, you will notice that you no longer have the error
So, I had an issue where I could map the DFS share manually in Finder, but it wouldn’t automatically mount on login
The machine in question was bound to the Active Directory Domain, the DFS shares were hosted on other servers bound to the Domain Controller, so I opened Terminal & entered this to check that the referrals were working correctly
smbutil dfs smb://root.dfs.namespace/DfsRoot/DfsLink
this showed that the Mac was only looking to the Domain Controller for DFS shares/namespaces
To resolve this problem we started up the DFS Service on the Domain controller and added the DFS namespaces to it
check out this Microsoft article for how to do this
After this had been done I opened Terminal and ran the command above and this time it returned my DFS namespaces, rebooting the Mac and logging back in resulted in the drive mounting automatically
If you have logged into a domain account and there is a broken link (question mark) in the Dock pretending to be your network home folder then you will need to edit your DOMAINNAME.plist to prevent this. (Where you see DOMAINNAME, replace this with the name of the domain you are connecting to)
First, copy /Library/Preferences/OpenDirectory/Configurations/Active Directory/DOMAINNAME.plist to your Desktop
Change the permissions so you can edit the file
Find the key:
& delete it
Then in Terminal enter the following command to restore it to its correct location
sudo cp DOMAINNAME.plist /Library/Preferences/OpenDirectory/Configurations/Active Directory/DOMAINNAME.plist
reboot and log in to a domain account and all should be well, no question mark in the dock
First you will need to enable the root user
You do this by opening Directory Utility which is located at /System/Library/CoreServices
Then click on the padlock to unlock the utility
Then click on the Edit menu and choose Enable Root User, enter a password in both the boxes and click OK
Now go to System Preferences, then Users & Groups, then Login Options, click on the padlock to unlock it, and choose the option ‘Display login window as: Name and password
Log out and then log in as the root user
Navigate to /Users and rename the folder of the account you wish to rename, remember that the shortname can only be lowercase letters, no capitals, numbers, punctuation or spaces
Now go to System Preferences, then Users & Groups and click on the + (plus) button to create a user with the shortname that matches the folder you just renamed, when it prompts you that a folder with that shortname already exists click OK or Agree and all ownership and permissions will be changed
Log out and then log in as the new user, check that all data is where it is supposed to be and then you can delete the original account
You do this by going to System Preferences, then Users & Groups, click on the padlock to unlock it and then click on the account you wish to delete, and click the – (minus) button, when it asks you if you are sure click OK