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)
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.
*** Bug 46687 has been marked as a duplicate of this bug. ***
Created attachment 35413 [details, diff] samba-3.0.4-r1.ebuild.diff This patch adds the smbumount-uid32.patch if $ARCH = ppc
Created attachment 35414 [details, diff] smbumount-uid32.patch
Created attachment 35416 [details] samba-3.0.4-r2.ebuild This ebuild fixes this bug and #44743 . Works fine on my iBook G4.
in cvs in this weekend. Thanks
can we change this patch so that it checks for amd64 arch aswell? see bug 46687, and commant from malc above.
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.