[SOLVED] autofs and mounting cifs mounts on centos 6.3
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to automount cifs mounts on centos 6.3 and failing. I have the following
/etc/auto.master
Quote:
/mnt/cifs /etc/auto.smb --timeout=60
+auto.master
/etc/auto.smb original unedited
/etc/auto.smb.fileshare {where fileshare is the name of the windows file server}
Quote:
username=user
password=password
where username and password are the username and password for the credentials of the file server. I restart autofs and nada, no error no nothing. No error in /var/log/messages or any other file that I can find.
If I run the command
Quote:
mount //fileserver/Software -o username=username -t cifs /mnt/cifs
it asks for a password, I enter it the mount works. What am I missing in the autofs portion?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.