autofs and mounting cifs mounts on centos 6.3
I am trying to automount cifs mounts on centos 6.3 and failing. I have the following
/etc/auto.master Quote:
/etc/auto.smb.fileshare {where fileshare is the name of the windows file server} Quote:
If I run the command Quote:
Any help will be appreciated. Thank you |
When I set up a couple windows automounts, I created a credentials file for the windows login. Verified it worked manually, then change the autofs.smb file to use the credentials file. I used /mnt/subdir mount points for the automounted shares.
Worked for me from Fedora 23 system. |
please double check the version
Cent only supports the current minor version that is CentOS 6.7 you are 5 minor versions and 3 years out of date and missing 3 years of security updates Code:
cat /etc/redhat-release |
I found a centos 7 system to work on. Currently I have
/etc/auto.master Quote:
Quote:
Quote:
|
Hi,
So now after restarting the autofs service by systemctl restart autofs, and then ls -l /mnt/cifs/soft, what is the output? |
The /mnt/cifs dir is empty. I get nothing, not even an error.
|
Yea I figured it out. In the auto.master file I had to add the option "--ghost". Everything I read said it was optional, for me it was not.
|
Happy to hear you got it resolved. I'm gonna check my configuration and see if I used --ghost. The documentation for automount is "sparse" :)
Just looked, yep, I used that option too. I don't even know what it does. |
according to what I've read is that it is supposed to make a place holder even when the share is not mounted. So if you are mounting a share to /mnt/Share --ghost will keep a dir for Share whereas if you don't use the option /mnt/Share will only exist when the share is mounted otherwise there will only be /mnt without a Share dir.
|
Thanks for the info!
|
no problem
|
All times are GMT -5. The time now is 03:16 PM. |