<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Autofs on Michael’s Domain</title><link>https://jeltsch.org/en/tags/autofs/</link><description>Recent content in Autofs on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/autofs/index.xml" rel="self" type="application/rss+xml"/><item><title>autofs, automount, auto.master and mounting samba shares</title><link>https://jeltsch.org/en/autofs_automount_auto_master_and_mounting_samba_shares/</link><pubDate>Mon, 21 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/autofs_automount_auto_master_and_mounting_samba_shares/</guid><description>&lt;p&gt;First I added a symbolic link to /etc/init.d/rc5.d/:&lt;code&gt;cd /etc/init.d/rc5.d sudo ln -s ../autofs S21autofs&lt;/code&gt;Then I added to the /etc/auto.master the following line:&lt;code&gt;/media/automounts /etc/auto.smbmounts&lt;/code&gt;Then I created the file auto.smbmounts with the following content:&lt;code&gt;michael_msbl.helsinki.fi -fstype=smbfs,username=michael,password=## ://paula/michael&lt;/code&gt; Then I created the mountpoint:&lt;code&gt;sudo mkdir /media/automounts/michael_msbl.helsinki.fi&lt;/code&gt;Then I activated the autofs daemon:&lt;code&gt;sudo /etc/init.d/autofs start&lt;/code&gt;Now whenever one tries to access the directory /media/automounts/michael_msbl.helsinki.fi, the autofs daemon will mount the smb share automatically and unmount after a certain period of inactivity.&lt;/p&gt;</description></item></channel></rss>