If you didnt get any output for the above command, then autofs package is not installed. Verify the autofs is installed and ~]# rpm -qa | grep -i autofs If not create users on centralized LDAP server, please refer the link Configure OpenLDAP Server on RHEL7/CentOS7Īutomount Home Directories Over NFS in RHEL7 / CentOS7Now Login into the client and follow the below steps.ġ. Make sure username, UID and GID of the users are same on the server and client end. we have already discussed about Installing and Configuring the NFS Server on RHEL7/CentOS7 and also How to Create a LDAP Users and Groups using LDIF file, so we will not discuss those topics here, please refer those links. It is optional.Īssume that our NFS server hostname is "nfsserver" and sharing the folder "/home" over NFS. The third field can contain information such as a timeout value. The second field is the location of the map file. Each line specified in the master file defines a mount point and separate map file for each filesystems to be mounted.Įach entry in auto.master has three fields. Main configuration file of autofs is /etc/auto.master. If you mount the NFS filesystem using autofs, filesystem will be mounted when someone is accessing it and automatically unmount when not in use after the timeout value.īest example for autofs is mounting the home directory shares over nfs for individual users when they log into the server. It doesn’t matter we use the filesystem or not. If you mount the filesystem using fstab, filesystem will be mounted automatically after the reboot. It can also unmount the filesystem when not in use for a particular predefined timeout value.īut there is an alternate method to mount NFS is using fstab which is well known method. Mounting NFS File Systems using autofsAutofs is a service offered us to automatically mount the filesystem when they need. I completely unmounted everything, made these changes and the share appeared at my mount point and I could access it as my user (mountpoint permissions are 700 user:wheel).In this article, We will explain you about the Autofs service and helps you to Automount Home Directories Over NFS in Linux. (local_mountpoint) -fstype=afp autofs aware of auto_afp Place the following style entry for your NAS Researching the vast Internet I found the suggestion of creating a seperate auto_afp file for Autofs to use so here is what I did. Now my MacMini is also giving me issues when it reboots. This was on an MacMini with 10.6, on my laptop with 10.7 I tried the same line and it gave me the permissions issue as abricko had. (hostname):(share) (mount_point) url (mount_point) 0 0 I was originally mounting AFP shares from my NAS by putting the following line in my /etc/fstab file Possible Fix that I found from different posts across the Internet. The only problem in doing this is if I disconnect from the network or the share drops it will not automatically reconnect and I'd have to run the command again. Yet if I use mount_afp or mount_smbfs it will obviously mount those shares as the user that is running the command, which is desirable. To test things further, I changed the FSTYPE in fstab from afp to cifs just to test and it still mounts the shares as the root/system user. I'm wondering if anyone is aware of an AFP or Automount or autoFS setting I can try changing on the iMac to get this working? Clearly something changed with AFP configuration in Lion, yet the upgraded MBP still funcitons as it did before, so some new default automount / autofs setting has changed yet it wasn't touched in the upgrade. No matter what I try I can't get it to automount those shares as a non system/root user. Now when the iMac boots the AFP shares are automounted by the system/root user and therefore are not accessible to any normal (admin) user on the iMac. I added the EXACT entries from the fstab file on the MBP to the fstab on the iMac. After upgrading to lion, the entries in /etc/fstab were still there and the shares are still functioning fine. The MBP was previously configured (in 10.6x) to automount a few AFP shares from my local NAS. The MBP was an upgrade from 10.6.8 to 10.7 the iMac was a full reinstall (erased the drive and booted off a flash installer I made for 10.7) I have two machines, an iMac and a Mac Book Pro.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |