You are not logged in.

#1 2008-02-24 08:16:35

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

user unable to umount samba share

Here is the lines in my /etc/fstab related to samba shares.

# Some Windows/SAMBA shares
//BAO-QNAP500GB/USB\040Disk\0401    /mnt/eBooks smbfs workgroup=BAO-HOME,username=xxxxxx,ip=192.168.2.4,password=xxxxxx,noauto,noatime,user,rw    0      0

I am able to mount samba share as a user (not root) after

chmod u+s /usr/bin/smbmnt
chmod u+s /usr/bin/smbumount

by

mount /mnt/eBooks

However, I am unable to umount as a user:

[ning@HP-m8100y ~]$ umount /mnt/eBooks
umount: /mnt/eBooks mount disagrees with the fstab

On the other hand, this could work:

smbumount /mnt/eBooks

Can somone tell me what I did wrong?

Offline

#2 2008-02-28 01:19:14

dabski
Member
Registered: 2008-02-07
Posts: 101
Website

Re: user unable to umount samba share

Looks like its something to do with fstab though I don't know what never having mounted shares though fstab myself. I would try removing the fstab entry and just using smbmount to mount shares, thats the way I've always done it and never have problems with mounting/unmounting.

smbmount //IP Address/source folder /destination folder

Offline

Board footer

Powered by FluxBB