Many thanks for the pointers. They've enabled me to narrow things down. So it seems the problem is not with autofs after all; it is actually a problem with Thunar. There was a Thunar process running with the --daemon argument and it appears that once you have browsed to the share in the Thunar UI, if the daemon is running it will keep the nfs share mounted.
I've updated the affected package of this report to reflect this ** Package changed: autofs (Ubuntu) => thunar (Ubuntu) -- You received this bug notification because you are a member of Debcrafters packages, which is subscribed to autofs in Ubuntu. https://bugs.launchpad.net/bugs/2126970 Title: Autofs does not unmount nfs filesystems after the timeout Status in thunar package in Ubuntu: Incomplete Bug description: Autofs remounts NFS filesystems after the timeout is up. For example, if autofs.master contains: /net -hosts noexec --timeout=30 If I then access /net/host/path/somewhere autofs will mount correctly and I can then see that the systemd unit net-host-path-somehwere.mount is visible and shows as active. If I then close anything open on that share I can see that after about 30s systemctl will start reporting: Unit net-host-path-somehwere.mount could not be found as I expect. However, within a few seconds systemctl will start again reporting that the unit is active and mounted. This then repeats; despite the fact I am not trying to access the mount. This means that the remote nfs file system never really unmounts despite the fact it is not being used. ProblemType: Bug DistroRelease: Ubuntu 25.04 Package: autofs 5.1.9-1.2ubuntu1 ProcVersionSignature: Ubuntu 6.14.0-33.33-generic 6.14.11 Uname: Linux 6.14.0-33-generic x86_64 ApportVersion: 2.32.0-0ubuntu5.3 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: XFCE Date: Mon Oct 6 22:08:20 2025 InstallationDate: Installed on 2024-07-06 (457 days ago) InstallationMedia: Xubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424.2) SourcePackage: autofs UpgradeStatus: Upgraded to plucky on 2025-09-15 (21 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/thunar/+bug/2126970/+subscriptions -- Mailing list: https://launchpad.net/~debcrafters-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~debcrafters-packages More help : https://help.launchpad.net/ListHelp

