[CentOS] AutoFS mystery ...

Akemi Yagi
Wed, 17 Jun 2015 17:54:21 -0000

On Wed, Jun 17, 2015 at 10:33 AM, Ashley M. Kirchner <ashley at
pcraft.com> wrote:
> I need a second pair of eyes here, please. I have a CentOS 6.6 server
> (let's call it 'S1") that has a Samba share on it that is
currently
> working. We can mount that drive on our Windows work stations and
> transfer/delete from it just fine. It's setup as a "guest"
config so no
> user specific passwords or any other restrictions like that.
>
> I'm trying to setup another server ("S2"), also CentOS 6.6
with autofs to
> mount that same share when it needs to. For some reason I can't seem to
get
> it to work. I get no error message anywhere, no indication of a failure,
> nothing.
>
> So on S2 I have:
> $ cat /etc/auto.master
> /misc           /etc/auto.misc
> /mnt/trex       /etc/auto.trex
> /net    -hosts
>
> $ cat /etc/auto.trex
> trex      -fstype=cifs,rw,noperm,credentials=/etc/cifs-credentials-trex
> ://bigrip/TREX

If I've read the files correctly, you might need to use /mnt/trex/trex
for autofs to work. Can you try:

/mnt    /etc/auto.trex

and see if that works as you intended?

Akemi