Bug 3330 - smbfs do not honor uid, gid, file_mode and dir_mode specified by smbmount
Summary: smbfs do not honor uid, gid, file_mode and dir_mode specified by smbmount
Status: RESOLVED CODE_FIX
Alias: None
Product: File System
Classification: Unclassified
Component: Samba/SMB (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: fs_samba-smb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-01 16:40 UTC by Haroldo Gamal
Modified: 2004-09-13 11:31 UTC (History)
0 users

See Also:
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. (6.28 KB, patch)
2004-09-01 16:49 UTC, Haroldo Gamal
Details | Diff
patch samba smbmnt.c to honor uid, gid, file_mode and dir_mode (1.99 KB, patch)
2004-09-01 16:53 UTC, Haroldo Gamal
Details | Diff
patch samba smbmount.c to honor uid, gid, file_mode and dir_mode (1.66 KB, patch)
2004-09-01 16:54 UTC, Haroldo Gamal
Details | Diff

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

Note You need to log in before you can comment on or make changes to this bug.