Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39891 - User can't unmount samba mounted resouce
Summary: User can't unmount samba mounted resouce
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-30 10:05 UTC by Maciej J. Woloszyk
Modified: 2006-02-04 06:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej J. Woloszyk 2004-01-30 10:05:04 UTC
If I mount an Samba resource from the server with:
mat@second mat $ smbmount //main/download mnt
Password:

It works just fine. But after that when I try to unmount it:
mat@second mat $ smbumount mnt
You are not allowed to umount /home/mat/mnt

It just don't work.
After I try:
mat@second mat $ su
Password:
root@second mat # smbumount mnt

It's OK. Samba executables permissions are set as default:
root@second mat # ls -al `which smbmount`
-rwxr-xr-x    1 root     root       647828 2004-01-27 13:19 /usr/bin/smbmount
root@second mat # ls -al `which smbumount`
---s--x--x    1 root     root         7064 2004-01-27 13:19 /usr/bin/smbumount
root@second mat # ls -al `which smbmnt`
---s--x--x    1 root     root         9172 2004-01-27 13:19 /usr/bin/smbmnt

The problem is it worked fine on x86 but it just doesn't work on my new PPC
installation. The Samba version is:
root@second mat # qpkg -I -v samba
net-fs/samba-3.0.1-r1 *

One more thing - I've got the exactly same message on other PPC machine (current one is Pegasos II, the first one os IBM's B50 Server) on other distro. But as the problem wasn't critical (as it is now - quite a few of my scripts need to be corrected tu use sudo or something ;)) I didn't investigated.

ANd finally - I've found some patch on some japanese page which suggests that the problem can be using 32/16 bit uids in Samba. The URL of the patch (as I'm not really that good at programming ;)) is:
http://ring.fujixerox.co.jp/archives/net/samba-jp/patch/2.0.7/smbmount-2.0.7-includes.patch
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2004-09-14 01:45:05 UTC
what about with new samba versions? some uid/gid issues in ppc were lately resolved (yes, this post comes a bit late, I know ;) )
Comment 2 Christian Andreetta (RETIRED) gentoo-dev 2004-09-17 00:48:21 UTC
closing for now: 16/32 bit gid/uid was fixed some versions ago. Reopen if needed
Comment 3 Maciej J. Woloszyk 2004-09-17 02:53:24 UTC
I've just installed 3.0.7 (after emerge sync) - it works fine now.
It's really unfortunate that since 3.0.5 there was no version that
would be marked even unstable for ppc - all versions up to my last
emerge sync (which I did some two weeks ago) didn't have ppc keyword
so I didn't noticed that the problem was solved in 3.0.5-r1.