Bug 3330

Summary: smbfs do not honor uid, gid, file_mode and dir_mode specified by smbmount
Product: File System Reporter: Haroldo Gamal (haroldo.gamal)
Component: Samba/SMBAssignee: fs_samba-smb
Status: RESOLVED CODE_FIX    
Severity: normal    
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.8.1 Subsystem:
Regression: --- Bisected commit-id:
Attachments: proposed patch the smbfs files to honor the uid, gid, file_mode and dir_mode.
patch samba smbmnt.c to honor uid, gid, file_mode and dir_mode
patch samba smbmount.c to honor uid, gid, file_mode and dir_mode

Description Haroldo Gamal 2004-09-01 16:40:57 UTC
Distribution:
Fedora Core 2, Slackware 10 e debian

Hardware Environment:

Software Environment:
Samba 3.0.5.

Problem Description:
If it is specified any of uid, gid, file_mode or dir_mode, the mounted directory
presents the file attributes related to the remote filesystem.

Steps to reproduce:
mount a remote filesystem specifying a diferent uid number from remote and
compare it.

This bug is reported on samba bugzilla as 999.
Comment 1 Haroldo Gamal 2004-09-01 16:49:43 UTC
Created attachment 3617 [details]
proposed patch the smbfs files to honor the uid, gid, file_mode and dir_mode.

Patching the files smbmnt.c and smbmount.c from samba 3.0.5, the  uid, gid,
dir_mode and file_mode from remote could be used if them are not specified on
smbmount.
Comment 2 Haroldo Gamal 2004-09-01 16:53:29 UTC
Created attachment 3618 [details]
patch samba smbmnt.c to honor uid, gid, file_mode and dir_mode
Comment 3 Haroldo Gamal 2004-09-01 16:54:27 UTC
Created attachment 3619 [details]
patch samba smbmount.c to honor uid, gid, file_mode and dir_mode