Bug 81544

Summary: Mounting smbfs with 32bit UID causes UID wraparound
Product: [Retired] Red Hat Linux Reporter: Panu Matilainen <pmatilai>
Component: sambaAssignee: Jay Fenlason <fenlason>
Status: CLOSED NEXTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: fenlason, jfeeney, mitr
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-02 10:23:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 73066    
Bug Blocks:    

Description Panu Matilainen 2003-01-10 09:00:27 UTC
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):


How reproducible:
Always

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..

Additional info:

The fix requires a patch to the kernel and also smbmnt:
http://www.hojdpunkten.ac.se/054/samba/smbmount-2.2.5-misc-2.patch.gz
Oh and this is present in all RH versions up to date, not just phoebe.

Comment 1 Jay Fenlason 2003-01-10 23:17:32 UTC
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.

Comment 2 Panu Matilainen 2003-01-12 10:48:00 UTC
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.

Comment 3 Panu Matilainen 2006-08-02 10:23:42 UTC
This ancient bug got eventually fixed in RHEL, closing...