Skip to content
Matt Simerson edited this page Dec 22, 2019 · 6 revisions

Mail Toaster can configure /usr/ports and /var/cache/pkg to automount within jails. This is convenient for sysadmins and can save keystrokes and time. However, the package cache should not be automounted on systems where untrusted users have access to the jails. This is typically not the case for a Mail Toaster. Out of an abundance of caution, this feature is not enabled by default.

Once enabled, when new jails are provisioned, they will be added to the /etc/auto_ports and/or /etc/auto_pkgcache files.

Enable

Add one or both of these lines to /etc/auto_master:

/-	auto_ports	-nosuid,noexec,noauto,noatime,ro
/-	auto_pkgcache	-nosuid,noexec,noauto,noatime

and enable autofs:

sysrc autofs_enable=YES
service automountd start
service autounmountd start