# This is an automounter map and it has the following format Here is the sample file provided by Ubuntu: Unless you have a good reason for changing this, leave it as the default. The master configuration file for autofs is /etc/auto.master by default. There are other ways to configure autofs on a network (see AutofsLDAP), but config files provide the simplest setup. Install the autofs package either by clicking here or entering the following in a terminal window:Īutofs can be configured by editing configuration files. Auto-mount or auto-mounting refers to the process of automatically mounting filesystems.Īutofs is the program that controls the operation of the automount daemons.When autofs is started, an automount daemon is spawned for each map. To avoid confusion, the following terminologies will be used:Īutomount is the program used to configure a mount point for autofs. Because of this, automounting NFS/Samba shares conserves bandwidth and offers better overall performance compared to static mounts via fstab. Auto-mounts are mounted only as they are accessed, and are unmounted after a period of inactivity. Unmount static mounts and edit /etc/fstabĪutofs is a program for automatically mounting directories on an as-needed basis. Only via apps with SMB/NFS/Other enabled, like Infuse on tvOS. But if your goal is also to access remote folders from an iPhone I don't think iOS (nor Android) natively allows to do it. SMB works better in Windows because it has been adopted by MS. Otherwise, if your goal is to have different remote folders for different users in different Macs, you may try NFS. The question is what will happen if one switches to a different user in a Mac. I use the same share between my Mac and Infuse on my Apple TV. I am not sure what would happen having the same automounted remote share accessed by different users (with different UIDs) in the same machine. Still I use it in a single user (per host) environment. Apart from that it usually work, no need for external apps. It needs to be backed up and restored after each new installation. That and the fact that auto_master gets reset at each new beta/new macOS release (?) installation. But in Terminal you can " chmod 600 /etc/auto_" so that only root can read it. My major issue is that the password for the remote share is in clear. Well, the instructions in the initial post are still valid, I am currently using that same configuration in macOS Macalina. That is the Mac equivalent to a user/group policy on Windows. I think the only way to do it using AD or OD credentials would be via a configuration profile and the Profile Manager built into the Server app or an MDM solution. If you want to set it up for additional users, you can use the same alias in their account and save their credentials in Keychain on the first connection. The credentials get pulled from the Keychain. Check the Hide box if you don't want the window popping up on login. Add the alias to Login Items in Users and Groups in System Preferences. I put it in the user's home directory (or in /Users/Shared depending on how many users are using the Mac).Ĥ. Select the drive icon on the Desktop and press Command+Control+A (or File > Make Alias).ģ. Mount the share in the Finder by pressing Command+K and check "Remember this password in Keychain" when logging in.Ģ. Here is a quick and dirty solution that works with the credentials saved in Keychain:ġ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |