Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 61302

Summary: mounting samba-shares in kernel 2.6 ignores uid & gid
Product: Gentoo Linux Reporter: Koen <soundfixture>
Component: [OLD] ServerAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Koen 2004-08-22 15:24:33 UTC
When mounting a samba-share on another computer, using uid and gid
arguments these (uid & gid) gets ignored. 

client: sys-kernel/development-sources-2.6.7 with net-fs/samba-3.0.5-r1
server: sys-kernel/vanilla-sources-2.4.26 with net-fs/samba-3.0.2a

When I issue :

mount -t smbfs -o username=koenvani,uid=koen //server/koenvani /mnt/test

The 'directory' level gets assigned the uid of koen but all the files and directories beneath the mount-directory get the uid on the remote server of
'koenvani' (that is, koenvani has 1001 on 'server', the files mounted on the client get mounted with uid 1001, fyi, there is no local-user with uid 1001). 

Almost the same setup works perfectly with a client running kernel 2.4.


Reproducible: Always
Steps to Reproduce:
1.mount -t smbfs -o username=koenvani,uid=koen //server/koenvani /mnt/test
2.
3.



Expected Results:  
Files should be mounted with uid of the one specified at "uid".

This bug was also posted (by someone else) as bug 110039 on RedHat Bugzilla at
this location : https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=110039
Comment 1 Koen 2004-08-23 01:50:42 UTC
Setting "unix extenions = no" solved the case.