Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44743 - smbumount denies umounting of shares on ppc as non-root
Summary: smbumount denies umounting of shares on ppc as non-root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL: http://lists.samba.org/archive/samba-...
Whiteboard:
Keywords:
: 46687 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-15 05:09 UTC by marlon
Modified: 2004-11-13 15:06 UTC (History)
3 users (show)

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


Attachments
samba-3.0.4-r1.ebuild.diff (samba-3.0.4-r1.ebuild.diff,451 bytes, patch)
2004-07-14 12:46 UTC, Alberto Garcia Hierro (Skyhusker)
Details | Diff
smbumount-uid32.patch (smbumount-uid32.patch,425 bytes, patch)
2004-07-14 12:46 UTC, Alberto Garcia Hierro (Skyhusker)
Details | Diff
samba-3.0.4-r2.ebuild (samba-3.0.4-r2.ebuild,10.99 KB, application/octet-stream)
2004-07-14 12:59 UTC, Alberto Garcia Hierro (Skyhusker)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marlon 2004-03-15 05:09:16 UTC
When I wanted to umount shares as a non-root user I always got the error "You are not allowed to unmount $share"

Reproducible: Always
Steps to Reproduce:
1. smbmount $share
2. smbumount $share

Actual Results:  
You are not allowed to unmount $share

Expected Results:  
umount the $share

I used the patch as noted in the url http://lists.samba.org/archive/samba-
technical/2002-October/024875.html, and smbumount worked on my ppc. I've read 
sparc arch's have this problem too, but could not test it. x86 arch's work fine 
without this patch.

-#define	SMB_IOC_GETMOUNTUID		_IOR('u', 1, __kernel_uid_t)
+#define	SMB_IOC_GETMOUNTUID		_IOR('u', 3, __kernel_uid32_t)
Comment 1 Malcolm Lashley (RETIRED) gentoo-dev 2004-05-17 07:55:01 UTC
ppc - please work with amd64 guys - we need this patch also ;-) - the bug for amd64 is 46687. I have tested this one line patch on amd64.
Comment 2 Daniel Black (RETIRED) gentoo-dev 2004-05-17 23:32:11 UTC
*** Bug 46687 has been marked as a duplicate of this bug. ***
Comment 3 Alberto Garcia Hierro (Skyhusker) 2004-07-14 12:46:21 UTC
Created attachment 35413 [details, diff]
samba-3.0.4-r1.ebuild.diff

This patch adds the smbumount-uid32.patch if $ARCH = ppc
Comment 4 Alberto Garcia Hierro (Skyhusker) 2004-07-14 12:46:49 UTC
Created attachment 35414 [details, diff]
smbumount-uid32.patch
Comment 5 Alberto Garcia Hierro (Skyhusker) 2004-07-14 12:59:59 UTC
Created attachment 35416 [details]
samba-3.0.4-r2.ebuild

This ebuild fixes this bug and #44743 . Works fine on my iBook G4.
Comment 6 Christian Andreetta (RETIRED) gentoo-dev 2004-07-15 06:15:39 UTC
in cvs in this weekend. Thanks
Comment 7 Oliver Jeeves 2004-07-16 00:18:12 UTC
can we change this patch so that it checks for amd64 arch aswell? see bug 46687, and commant from malc above.
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2004-11-13 15:06:28 UTC
Even better.... would this hurt to apply across all arches?  I know that last time I tried on x86, I could not umount SMB shares as a normal user.