View previous topic :: View next topic |
Author |
Message |
sancho5 n00b

Joined: 04 Nov 2003 Posts: 28
|
Posted: Thu Feb 12, 2004 3:39 pm Post subject: smbumount not working for non-root users? |
|
|
I have some SMB shares mounted on my system and the fstab file set up to allow me to mount them as unprivileged users. But when I try to unmount the share as the same user that mounted it, it doesn't work if I use the 'umount' command, but it does work using the 'smbumount' command:
Code: | $ umount /mnt/smbdata/
umount: only root can unmount //data/it from /mnt/smbdata
$ smbumount /mnt/smbdata
$ |
Here is my fstab entry:
Code: | //data/it /mnt/smbdata smbfs credentials=/home/darren/.smbcredentials,workgroup=sento,user,noauto,_netdev 0 0 |
Code: | $ ls -l /usr/bin/smbmount /usr/bin/smbumount /bin/mount /bin/umount
-rws--x--x 1 root root 99000 Sep 12 00:04 /bin/mount
-rws--x--x 1 root root 57836 Sep 12 00:04 /bin/umount
-rwxr-xr-x 1 root root 694524 Feb 9 20:40 /usr/bin/smbmount
---s--x--x 1 root root 6104 Feb 9 20:40 /usr/bin/smbumount |
The way I see it, /bin/umount is suid root so I should be able to unmount?
The reason I want to use umount as well as smbumount is that the GNOME disk mount applet is unable to unmount SMB shares, and apparently uses umount to do so.
TIA
DS |
|
Back to top |
|
 |
Kethinov Apprentice


Joined: 20 Aug 2003 Posts: 166 Location: ESU, Student Teaching 5th Grade
|
Posted: Thu Feb 12, 2004 6:03 pm Post subject: |
|
|
Perhaps chown -R the mount points and/or the program binaries itself? |
|
Back to top |
|
 |
sancho5 n00b

Joined: 04 Nov 2003 Posts: 28
|
Posted: Thu Feb 12, 2004 8:53 pm Post subject: |
|
|
Mmm.. the binaries should not be altered, as they are suid root for a purpose.
The mount point itself is owned by my user and my group.
Code: | drwxr-xr-x 1 darren users 4096 Feb 6 14:31 /mnt/smbdata/ |
|
|
Back to top |
|
 |
|