smbmount allows mounting the same ressource multiple times on the same mountpoint

Bug #620382 reported by nomike
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
cifs-utils (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: samba

I'm running "Ubuntu 10.04.1 LTS".
I tried to mount a network share using the following command:

sudo smbmount //P1at.s-group.cc/Shared/Global/ /mnt/ -o user=s4773,dom=i0188

I realized I could not write to the share as a regular user so I ran

sudo smbmount //P1at.s-group.cc/Shared/Global/ /mnt/ -o user=s4773,dom=i0188,remount,rw,user

two times.
This resulted in "//P1at.s-group.cc/Shared/Global/" being mounted to "/mnt/" 3 times.

Running " LC_ALL=C umount /mnt/" produced "umount: it seems /mnt is mounted multiple times".
Running "sudo umount /mnt/" unmounted one of the mounts.

The "mount" commando still outputs:
...
//P1at.s-group.cc/Shared/Global/ on /mnt type cifs (rw,mand)
//P1at.s-group.cc/Shared/Global/ on /mnt type cifs (rw,mand)

Running "sudo umount /mnt/" again produces:

This utility only unmounts cifs filesystems.
This utility only unmounts cifs filesystems.
This utility only unmounts cifs filesystems.

I did not find a way to umount them and rebootet my System.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: samba 2:3.4.7~dfsg-1ubuntu3.1
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
CIFSMounts: Error: command ['mount', '|', 'grep', 'cifs'] failed with exit code 1: mount: only root can do that
CifsVersion:
 Display Internal CIFS Data Structures for Debugging
 ---------------------------------------------------
 CIFS Version 1.61
 Active VFS Requests: 0
 Servers:
Date: Thu Aug 19 12:42:37 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
SambaClientRegression: No
SourcePackage: samba

Revision history for this message
nomike (michael-postmann) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

I'm marking this as "Low" importance simply because of the easy work around of "don't do that". I do recognize its a valid issue.

nomike, it would be helpful if you could share (If you know) whether or not this is a regression from a previous release, or behavior different from upstream.

Changed in samba (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Bryce Nesbitt (bryce2) wrote :

Same issue here. Presumably this is an upstream issue:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 234455920 6854696 215691492 4% /
none 1020280 264 1020016 1% /dev
none 1024796 384 1024412 1% /dev/shm
none 1024796 212 1024584 1% /var/run
none 1024796 0 1024796 0% /var/lock
none 1024796 0 1024796 0% /lib/init/rw
//192.168.1.44/cabinet
                      80530640 5140 80525500 1% /mnt/temp3
//192.168.1.44/cabinet
                      80530640 5140 80525500 1% /mnt/temp3
//192.168.1.44/cabinet
                      80530640 5140 80525500 1% /mnt/temp3

Jelmer Vernooij (jelmer)
affects: samba (Ubuntu) → cifs-utils (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.