Package: cifs-utils
Version: 2:4.5-2
Severity: normal
I appreciate the new cifs.utils version coming down as I can now mount CIFS
shares as a regular user.
However I cannot UNMOUNT the shares as a regular user.
In the past, this was accomplished by ensuring that both mount.cifs and
umount.cifs were setuid root.
With the current version it appears that the cifs.utils package no longer
includes umount.cifs.
Here is an example of the behavior I am seeing:
Mount cifs share:
ja...@mis-jz-lnx:~$ mount G
List mounts:
ja...@mis-jz-lnx:~$ mount
/dev/sda1 on / type ext3 (rw,acl,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sdb1 on /home type ext3 (rw,acl)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
//files.ci.juneau.ak.us/james$/ on /home/james/G type cifs
(rw,mand,nosuid,nodev,user=james)
Attempt to umount cifs share:
ja...@mis-jz-lnx:~$ umount G
umount: /home/james/G mount disagrees with the fstab
Unmount cifs share:
ja...@mis-jz-lnx:~$ sudo umount G
ja...@mis-jz-lnx:~$ [this was a success]
Relevant fstab entry:
//files.ci.juneau.ak.us/james$ /home/james/G cifs
acl,rw,user,noauto,credentials=/home/james/.nt/creds 0 0
I do some file archiving via cifs mounts that are manipulated via script, and
the ability to run these scripts as a non-root user is important to me. In the
sudo example above, my password had not timed out yet so I was not prompted for
one. However when the script runs I would need to present the password, or
edit /etc/sudoers to allow the command to complete without a password.
Editing the sudoers file to specifically allow unmounting this share without a
password is a relatively simple workaround, but I would prefer the ability to
mount and unmount as a regular user without that requirement.
Thank you!
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 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 cifs-utils depends on:
ii libc6 2.11.1-3 Embedded GNU C Library: Shared lib
ii libcap2 1:2.17-2 support for getting/setting POSIX.
ii libkeyutils1 1.4-1 Linux Key Management Utilities (li
ii libkrb5-3 1.8.1+dfsg-5 MIT Kerberos runtime libraries
ii libtalloc2 2.0.1-1 hierarchical pool based memory all
ii samba-common 2:3.4.8~dfsg-1 common files used by both the Samb
cifs-utils recommends no packages.
Versions of packages cifs-utils suggests:
ii smbclient 2:3.4.8~dfsg-1 command-line SMB/CIFS clients for
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]