re-post: problems umounting samba shares

Paul Howarth paul at city-fan.org
Mon Apr 4 11:17:22 UTC 2005


Trevor "TeC" Christian wrote:
> Paul Howarth wrote:
> 
>> Trevor "TeC" Christian wrote:
>>
>>>>> umount: only root can unmount //192.168.100.1/public from 
>>>>> /mnt/smb/public
>>>>>
>>>>> Question though, I can mount the share as a user.  How can i umount 
>>>>> it?
>>>>
>>>> Unmount it as root this time. Then, after mounting it as a regular 
>>>> user,
>>>> try unmounting it as the same user.
>>>>
>>> Same thing.
>>> For a user to be able to mount smbfs...i had to chmod u+s `which  
>>> smbmnt`.
>>> Would i need to do something similar to allow non-root users to umount?
>>
>> Do:
>> # chmod u+s /usr/bin/smbumount
>> and use "smbumount" to unmount your shares.
>>
>> Paul.
>>
> That works, thanks.
> 
> Am I to understand that as a regular user i will not be able to use 
> umount to unmount a samba share?
> 
> This creates a little bit of a problem with regards to the use of the 
> GUI for mounting and umounting devices.  Right clicking on a device on 
> the desktop and selecting unmount seems to use the umount command which 
> only allows works for root.

I think so; I certainly couldn't get it to work, and it's not advisable 
to make "umount" SUID root.

Paul.




More information about the users mailing list