[Bug 1754506] Re: AutoFS does not automatically umount SMB shares
Alexander Lochmann
1754506 at bugs.launchpad.net
Tue Mar 13 19:07:40 UTC 2018
As far as I know, just a few steps are necessary to reproduce this issue:
1. Setup a simple smb server on machine a, like the one I've attached to this report.
2. Create a smb user on machine a: smbpasswd -a $username
3. Enable smb in auto.master on machine b (and set the timeout to something small, e.g., 30 secs):
/media/smb/ program:/etc/auto.smb
4. Save the credentials on machine b: echo "username=$username\npassword=$password" > /etc/creds/machineb
5. Try to access the home directory from machine b:
user at machineb:~$ ls -lh /media/smb/machineb/$username
6. The smb mount is still there after more than 30 seconds
** Attachment added: "smb.conf"
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1754506/+attachment/5078500/+files/smb.conf
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autofs in Ubuntu.
https://bugs.launchpad.net/bugs/1754506
Title:
AutoFS does not automatically umount SMB shares
Status in autofs package in Ubuntu:
Incomplete
Bug description:
Description: Ubuntu 17.10
Release: 17.10
autofs:
Installed: 5.1.2-1ubuntu1
Candidate: 5.1.2-1ubuntu1
Version table:
*** 5.1.2-1ubuntu1 500
500 http://de.archive.ubuntu.com/ubuntu artful/main amd64 Packages
100 /var/lib/dpkg/status
Kernel: self-built 4.15.6
What I expect:
I expect AutoFS to automatically unmount my samba share after the timeout. However, it does not. The share is still mounted.
I've turned the autofs debug output in the kernel module. As far as I can tell, the kernel thinks the cifs mount is still busy.
I'm using the smb automount script provided by the package: /etc/auto.smb. I've just added an additional cifs parameter(vers=2.0).
My auto.master looks as follows:
/media/smb/ program:/etc/auto.smb
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1754506/+subscriptions
More information about the foundations-bugs
mailing list