Quoting Z F ([EMAIL PROTECTED]): > I do not have access to the system right now, but basically, I do this: > smbmount "\\\\sambaserver\\share_name" local_mount_point -o username=user > Notice, that I do it as a regular user and point into a subdirectory of my > home directory (if that is important) > > It asks for password and the share is mounted to local_mount_point. > Now, to unmount, I used to be able to do umount local_mount_point (again > as a regular user) but now it generates an error. > > I have noticed that if I become root and do umount several times, then > it succeeds. > > I am using debian unstable. > > Am I doing something wrong and there is no bug at all? but it worked in > the past :) ( or maybe that was a bug that it worked?)
OK, we *now* have a reproducible test case: [EMAIL PROTECTED]:~> mkdir mnt [EMAIL PROTECTED]:~> smbmount "\\\\kheops\\files" mnt -o username=bubulle Password: [EMAIL PROTECTED]:~> ls -l mnt total 1096 .../... (files in the share) [EMAIL PROTECTED]:~> mount -t cifs //kheops/files on /home/bubulle/mnt type cifs (rw,mand,nosuid,nodev,user=bubulle) [EMAIL PROTECTED]:~> smbumount mnt [EMAIL PROTECTED]:~> ls -l mnt total 0 [EMAIL PROTECTED]:~> mount -t cifs //kheops/files on /home/bubulle/mnt type cifs (rw,mand,nosuid,nodev,user=bubulle) [EMAIL PROTECTED]:~> As root: [EMAIL PROTECTED]:~> mount -t cifs //kheops/files on /home/bubulle/mnt type cifs (rw,mand,nosuid,nodev,user=bubulle) [EMAIL PROTECTED]:~> umount /home/bubulle/mnt This utility only unmounts cifs filesystems. This utility only unmounts cifs filesystems. [EMAIL PROTECTED]:~> tail /etc/mtab .../... //kheops/files /home/bubulle/mnt cifs rw,mand,nosuid,nodev,user=bubulle 0 0 So, the point is that smbumount did *not* update /etc/mtab even though the umount succeeded. *this* is the bug I see here: not updating /etc/mtab when unmounting.
signature.asc
Description: Digital signature