Red Hat Bugzilla – Bug 81544
Mounting smbfs with 32bit UID causes UID wraparound
Last modified: 2014-08-31 19:24:33 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20021216
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.smbmount //some/share /mnt/ -o uid=100000
2. ls -ld /mnt
Actual Results: Actual Results: The UID wraps around at 65535(and so does GID)
so the mount point gets owned by wrong UID.
Expected Results: UID shouldn't wrap around of course..
The fix requires a patch to the kernel and also smbmnt:
Oh and this is present in all RH versions up to date, not just phoebe.
I'm reassigning this to the kernel maintainer. Once the kernel uses a proper
__kernel_uid_t, we'll see if samba 2.2.7a needs patching.
Oh by the point here was that you can't really change the __kernel_uid_t in
middle of stable kernel series - see
http://www.uwsg.iu.edu/hypermail/linux/kernel/0209.0/0678.html. With this patch
in samba you don't need to break kernel binary compatibility.
This ancient bug got eventually fixed in RHEL, closing...