[Pkg-samba-maint] Bug#461048: We need to understand how to reproduce bug #461048 on samba

Christian Perrier bubulle at debian.org
Sun Oct 19 17:50:19 UTC 2008


Quoting Z F (mail4me9999 at yahoo.com):

> 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:

bubulle at mykerinos:~> mkdir mnt
bubulle at mykerinos:~> smbmount "\\\\kheops\\files" mnt -o username=bubulle
Password:
bubulle at mykerinos:~> ls -l mnt
total 1096
.../... (files in the share)

bubulle at mykerinos:~> mount -t cifs
//kheops/files on /home/bubulle/mnt type cifs (rw,mand,nosuid,nodev,user=bubulle)
bubulle at mykerinos:~> smbumount mnt
bubulle at mykerinos:~> ls -l mnt
total 0
bubulle at mykerinos:~> mount -t cifs
//kheops/files on /home/bubulle/mnt type cifs (rw,mand,nosuid,nodev,user=bubulle)
bubulle at mykerinos:~>   


As root:

oot at mykerinos:~> mount -t cifs
//kheops/files on /home/bubulle/mnt type cifs (rw,mand,nosuid,nodev,user=bubulle)
root at mykerinos:~> umount /home/bubulle/mnt
This utility only unmounts cifs filesystems.
This utility only unmounts cifs filesystems.
root at mykerinos:~> 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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20081019/5dc905e5/attachment.pgp 


More information about the Pkg-samba-maint mailing list