Package: mount
Version: 2.20.1-5.1
Severity: normal

Dear Maintainer,

I have several entries for cifs shares in /etc/fstab, each marked as 
'user' mountable. I expect that 'mount -at cifs' scans through fstab and
attempts to mount each of these, either deciding to perform the mount 
by itself or by delegating to mount.cifs.

What happens is that the mount command is rejected with the error
message 

sts@nbofm020:~$ mount -at cifs
mount: only root can do that

though each single filesystem is mounted correctly

sts@nbofm020:~$ mount /ipmfas/ofm-projekte
sts@nbofm020:~$ df
Filesystem                                              1K-blocks       Used 
Available Use% Mounted on
[...]
//ipmfas/ofm-projekte                                  2732431772 2628478316 
103953456  97% /ipmfas/ofm-projekte
sts@nbofm020:~$ 

In fact, 'mount -at cifs' as user does not even reference /etc/fstab as
can be seen by running strace, so it seems to link the -a option to 
a mandatory uid/euid of 0 at an early stage. 

By the way, umount also does not correctly honor 'user', since from the 
same shell a subsequent 

sts@nbofm020:~$ umount /ipmfas/ofm-projekte 
umount: only root can unmount //ipmfas/ofm-projekte from /ipmfas/ofm-projekte

fails. 


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mount depends on:
ii  libblkid1    2.20.1-5.1
ii  libc6        2.13-33
ii  libmount1    2.20.1-5.1
ii  libselinux1  2.1.9-5
ii  libsepol1    2.1.4-3

mount recommends no packages.

Versions of packages mount suggests:
ii  nfs-common  1:1.2.6-3

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to