FS#9672 - Non-root user cannot umount a SAMBA share if there is "SPACE" with the SAMBA share name
Attached to Project:
Arch Linux
Opened by Ning Bao (phabulosa) - Sunday, 24 February 2008, 19:33 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 06 April 2009, 18:51 GMT
Opened by Ning Bao (phabulosa) - Sunday, 24 February 2008, 19:33 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 06 April 2009, 18:51 GMT
|
Details
Description:
If there are "SPACE" in the SAMBA share name. Then, a non-root user can mount that share, but cannot umount it with "umount" command. It gives "mount desagrees with the fstab" error. root can mount/umount without any problem. Also, user can umount the share by "smbumount" without any problem. Additional info: * package version(s) samba 3.0.28A-1 util-linux-ng 2.13.0.1-2 * config and/or log files etc. /etc/fstab Steps to reproduce: 1. Add a line in /etc/fstab as the following //QNAP-500GB/USB\040Disk\0401 /mnt/eBooks smbfs workgroup=GROUPNAME,username=xxxxxx,ip=xxxxxxxx,password=xxxxxx,noauto,noatime,users,rw 0 0 as you can see that SAMBA share name "USB Disk 1" was replace by "USB\040Disk\0401". 2. Change UID of/usr/bin/smbmnt and /usr/bin/smbumount by chmod u+s /usr/bin/smbmnt chmod u+s /usr/bin/smbumount 3. Change the ownership of the mount path for this SAMBA share to a non-root user by chown username:users /mnt/eBooks 4. mount as a non-root user (username) mount /mnt/eBooks 5. ERROR! if umount as a non-root user; NO ERROR if umount as root. [ning@HP-m8100y ~]$ umount /mnt/eBooks/ umount: /mnt/eBooks mount disagrees with the fstab 6. This SAMBA share can be umounted by smbumount /mnt/eBooks |
This task depends upon
Comment by Jud (judfilm) - Friday, 05
December 2008, 12:25 GMT
Comment by
Tobias Powalowski (tpowa) - Monday,
30 March 2009, 05:08 GMT
Is this still a problem?
bump?