Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
smbumount not working for non-root users?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sancho5
n00b
n00b


Joined: 04 Nov 2003
Posts: 28

PostPosted: Thu Feb 12, 2004 3:39 pm    Post subject: smbumount not working for non-root users? Reply with quote

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
View user's profile Send private message
Kethinov
Apprentice
Apprentice


Joined: 20 Aug 2003
Posts: 166
Location: ESU, Student Teaching 5th Grade

PostPosted: Thu Feb 12, 2004 6:03 pm    Post subject: Reply with quote

Perhaps chown -R the mount points and/or the program binaries itself?
Back to top
View user's profile Send private message
sancho5
n00b
n00b


Joined: 04 Nov 2003
Posts: 28

PostPosted: Thu Feb 12, 2004 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum