You are not logged in.

#1 2008-02-24 21:18:39

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Non-root user cannot umount a SAMBA share if there is "SPACE" with the

I already post this to the bugs report http://bugs.archlinux.org/task/9672, but I would like to see if someone in the forum can help.


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

Offline

#2 2008-02-25 17:58:20

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: Non-root user cannot umount a SAMBA share if there is "SPACE" with the

Did you try using %20 instead of a space?  I know it works for URLs...worth a shot.

Offline

Board footer

Powered by FluxBB