Bug 133272

Summary: (FS CIFS) mounting guest via cifs gives different file perms than smbfs
Product: [Fedora] Fedora Reporter: Andy Grover <andrew.grover>
Component: kernelAssignee: Steve Dickson <steved>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: davej, wtogami
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: 2005-10-31 21:24:47 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:    
Bug Blocks: 123268, 136451    

Description Andy Grover 2004-09-22 20:28:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7)
Gecko/20040808 Firefox/0.9.3

Description of problem:
Recently switched to cifs from smbfs for mounting a share from my
Windows XP box. Permissions seem to be messed up:

[root@grover2 ~]# mount -t smbfs -o user=guest,guest
//agrover-desk.amr.corp.intel.com/src$ desk
[root@grover2 ~]# ls -l desk
total 798947
-rwxr-xr-x  1 root root      1502 Aug  9 14:11 mps.txt
<more listings>
[root@grover2 ~]# umount desk
[root@grover2 ~]# mount -t cifs -o user=guest,guest
//agrover-desk.amr.corp.intel.com/src$ desk
[root@grover2 ~]# ls -l desk
total 798944
-rwxrwSrwt  1 root root      1502 Aug  9 14:11 mps.txt
<more listings>
[root@grover2 ~]# umount desk



Version-Release number of selected component (if applicable):
kernel-2.6.8-1.584

How reproducible:
Always

Steps to Reproduce:
1. mount a share as guest via smbfs
2. Note permissions
3. unmount
4. mount the share as guest via cifs
4. Note permissions
    

Actual Results:  all permissions are set

Expected Results:  permissions should look like smbfs, especially
setuid and sticky bits should not be set.

Additional info:

Comment 1 Carsten Clasohm 2005-08-24 14:45:33 UTC
This is reproducable on RHEL 4 with kernel 2.6.9-11.EL, acessing a share
provided by a Windows NT 4 SP6a server.


Comment 2 Steve Dickson 2005-10-31 21:24:47 UTC
This should be fixed in the latest RAWHIDE kernel