[CentOS] [SOLVED] using autofs on C-7

Fri Jun 9 20:14:18 UTC 2017
Akemi Yagi <amyagi at gmail.com>

On Fri, Jun 9, 2017 at 12:54 PM, Fred Smith
<fredex at fcshome.stoneham.ma.us> wrote:
> On Fri, Jun 09, 2017 at 01:58:25PM -0400, Fred Smith wrote:

>> > Your current setup does not agree with the instructions. May I suggest
>> > you follow the example in the wiki exactly as it is written? If you
>> > confirm that works, you can replace the name etc to fit your
>> > situation.
>> >
>> > Akemi
>>
>> Akemi:
>>
>> thanks for the reply!
>>
>> I was struggling with the instructions because some things are not
>> defined, and left to the reader to figure out. Not blaming you, all the
>> other instructions I saw have the same issue. but if, for example, there
>> was a clear statement of how/where the name of the local mount point
>> was defined I might have gotten it right, but as it is I had to guess.
>>
>> But I'll go do what you suggest and see what happens.
>>
>> thanks again!
>>
>
> OK, I've got it working, and Akemi's suggestion helped me figure it out.
>
> This is in /etc/auto.master:
>
>         /mnt /etc/auto.mnt
>
> and this is in /etc/auto.mnt:
>
>         #
>         # mounts public and home shares on the NasBox.
>         #
> .       syno-public -fstype=cifs,rw,credentials=/root/.smbcred,defaults,uid=fredex,gid=fredex,noauto,users,exec,vers=3.0 ://nasbox/public
>
>         syno-fredex -fstype=cifs,rw,credentials=/root/.smbcred,defaults,uid=fredex,gid=fredex,noauto,users,exec,vers=3.0 ://nasbox/home
>
> trying to access /mnt/syno-fredex, then, mounts my home directory on the
> Nasbox there, and access of /mnt/syno-public mounts the public share from
> the Nasbox there.
>
> It all makes sense now.
>
> thanks Akemi!
>
> PS, would it be worth documenting the systemd automount feature in the
> same wiki article?

Glad to hear you've got it working.

Sure, your contribution to the wiki article is much appreciated. :)

Akemi