From: Björn H. <bjo...@it...> - 2011-06-04 21:23:19
|
Hello, I am successfully connecting my Windows box to a RHEL 5 over SMB. This works for both mounting a regular share as well as a fuse mountpoint. On RHEL 6 I can only mount a regular share, but not a fuse mountpoint. I am getting a Permission Denied error. Does anybody know why this could be happening? I have attached below: - my smb.conf file (it is the same on both machines) - my smbuser file (it is the same on both machines) - output from smbclient command for RHEL 6 - some debug output from my fuse implementation for RHEL 5 - some debug output from my fuse implementation for RHEL 6 Also, ls -ldZ gives the following outputs: RHEL 5, regular share: drwxr-xr-x root root root:object_r:mnt_t regshare/ RHEL 5, fuse share: drwxr-xr-x root root system_u:object_r:fusefs_t iFSG-EE/ RHEL6 regular share: drwxr_xr_x. root root unconfined_u:object_r:mnt_t:s0 regshare/ RHEL6 fuse share: drwxr_xr_x. root root system_u:object_r:fusefs_t:s0 iFSG-EE/ The share has the necessary permissions for root to connect: drwxr-xr-x. 5 root root 4096 Dec 10 15:15 iFSG-EE I am getting the ls event multiple times under RHEL 6, but not sure where that Permission denied comes from? Any pointers would be greatly appreciated, thanks, bjorn - smb.conf: [global] workgroup = WORKGROUP netbios name = localhost.localdomain server string = Samba Server Version %v security = user browseable = yes [fuseshare] path = /mnt/iFSG-EE browseable = yes writeable = yes read only = no guest ok = yes valid users = root [regshare] path = /mnt/regshare browseable = yes writeable = yes read only = no guest ok = yes valid users = root - smbusers: root = administrator admin root smbroot = smbroot nobody = guest pcguest smbguest - output from smbclient command to RHEL 6 [root@localhost iFuseNative]# smbclient -L 192.168.9.58 Password: Domain=[LOCALHOST.LOCALDOMAIN] OS=[Unix] Server=[Samba 3.5.4-68.el6_0.2] Sharename Type Comment --------- ---- ------- fuseshare Disk regshare Disk IPC$ IPC IPC Service (Samba Server Version 3.5.4-68.el6_0.2) Domain=[LOCALHOST.LOCALDOMAIN] OS=[Unix] Server=[Samba 3.5.4-68.el6_0.2] Server Comment --------- ------- Workgroup Master --------- ------- WORKGROUP I35200-2K3X64 Fuse Debug Output Under RHEL 5: 2011-06-02 16:38:11,979 DEBUG FuseMethodsInvoker:370 - Entering getattr_pre with path '/' 2011-06-02 16:38:11,980 DEBUG FuseMethodsInvoker:349 - Root, so we have to display all subfolders. 2011-06-02 16:38:11,980 DEBUG FuseMethodsInvoker:393 - GetPath User is '/' 2011-06-02 16:38:11,980 DEBUG FuseMethodsInvoker:401 - PathInfo for root is '0' 2011-06-02 16:38:11,980 DEBUG GetPathInfo:51 - Entering root and returning immediately with conf users: 3 2011-06-02 16:38:11,981 DEBUG GetPathInfo:75 - Mode is 16877 2011-06-02 16:38:11,981 DEBUG FuseMethodsInvoker:412 - PathInfos is Ok 2011-06-02 16:38:11,981 DEBUG FuseMethodsInvoker:413 - File mode is 16877 2011-06-02 16:38:11,998 DEBUG FuseMethodsInvoker:1162 - Entering javaAccess with path '/' -- mask '1' 2011-06-02 16:38:12,011 DEBUG FuseMethodsInvoker:370 - Entering getattr_pre with path '/*' 2011-06-02 16:38:12,013 DEBUG FuseMethodsInvoker:354 - User is '*' 2011-06-02 16:38:12,013 DEBUG FuseMethodsInvoker:393 - GetPath User is '*' 2011-06-02 16:38:12,013 DEBUG FuseMethodsInvoker:424 - Getting fmp for user '*' 2011-06-02 16:38:12,013 DEBUG FuseMethodsInvoker:425 - size of user map:'3' 2011-06-02 16:38:12,014 ERROR FuseMethodsInvoker:430 - FuseMountpoint is null, we really should be in failsafe mode at this point 2011-06-02 16:38:12,014 DEBUG FuseMethodsInvoker:370 - Entering getattr_pre with path '/*' 2011-06-02 16:38:12,014 DEBUG FuseMethodsInvoker:354 - User is '*' 2011-06-02 16:38:12,014 DEBUG FuseMethodsInvoker:393 - GetPath User is '*' 2011-06-02 16:38:12,015 DEBUG FuseMethodsInvoker:424 - Getting fmp for user '*' 2011-06-02 16:38:12,015 DEBUG FuseMethodsInvoker:425 - size of user map:'3' 2011-06-02 16:38:12,015 ERROR FuseMethodsInvoker:430 - FuseMountpoint is null, we really should be in failsafe mode at this point 2011-06-02 16:38:12,028 DEBUG FuseMethodsInvoker:1207 - Calling javaListFiles with path: '/' 2011-06-02 16:38:12,028 DEBUG FuseMethodsInvoker:349 - Root, so we have to display all subfolders. 2011-06-02 16:38:12,028 DEBUG FuseMethodsInvoker:1220 - We have 3 configured users and string len is '3' 2011-06-02 16:38:12,029 DEBUG FuseMethodsInvoker:1225 - In List files:: User[0] is 'user' 2011-06-02 16:38:12,029 DEBUG FuseMethodsInvoker:1225 - In List files:: User[1] is 'OnClose' 2011-06-02 16:38:12,029 DEBUG FuseMethodsInvoker:1225 - In List files:: User[2] is 'ReadInfoVerify' Fuse Debug Output under RHEL 6, VM: 2011-06-02 07:44:29,117 DEBUG FuseMethodsInvoker:720 - Entering javaAccess with path '/' -- mask '1' 2011-06-02 07:44:51,641 DEBUG FuseMethodsInvoker:800 - Entering javaGetPathInfo with path '/' 2011-06-02 07:44:51,642 DEBUG FuseMethodsInvoker:299 - Root, so we have to display all subfolders. 2011-06-02 07:44:51,643 DEBUG FuseMethodsInvoker:819 - GetPath User is '/' 2011-06-02 07:44:51,643 DEBUG FuseMethodsInvoker:830 - PathInfo for root is '0' 2011-06-02 07:44:51,643 DEBUG GetPathInfo:51 - Entering root and returning immediately with conf users: 3 2011-06-02 07:44:51,644 DEBUG GetPathInfo:75 - Mode is 16877 2011-06-02 07:44:51,645 DEBUG FuseMethodsInvoker:838 - PathInfos is Ok 2011-06-02 07:44:51,645 DEBUG FuseMethodsInvoker:839 - File mode is 16877 2011-06-02 07:44:52,438 DEBUG FuseMethodsInvoker:720 - Entering javaAccess with path '/' -- mask '1' 2011-06-02 07:44:52,440 DEBUG FuseMethodsInvoker:800 - Entering javaGetPathInfo with path '/Desktop.ini' 2011-06-02 07:44:52,447 DEBUG FuseMethodsInvoker:743 - Calling javaListFiles with path: '/' 2011-06-02 07:44:52,447 DEBUG FuseMethodsInvoker:299 - Root, so we have to display all subfolders. 2011-06-02 07:44:52,447 DEBUG FuseMethodsInvoker:747 - After Calling GetUser 2011-06-02 07:44:52,448 DEBUG FuseMethodsInvoker:754 - We have 3 configured users and string len is '3' 2011-06-02 07:44:52,449 DEBUG FuseMethodsInvoker:759 - In List files:: User[0] is 'user' 2011-06-02 07:44:52,449 DEBUG FuseMethodsInvoker:759 - In List files:: User[1] is 'OnClose' 2011-06-02 07:44:52,449 DEBUG FuseMethodsInvoker:759 - In List files:: User[2] is 'ReadInfoVerify' 2011-06-02 07:44:52,461 DEBUG FuseMethodsInvoker:743 - Calling javaListFiles with path: '/' 2011-06-02 07:44:52,461 DEBUG FuseMethodsInvoker:299 - Root, so we have to display all subfolders. 2011-06-02 07:44:52,462 DEBUG FuseMethodsInvoker:747 - After Calling GetUser 2011-06-02 07:44:52,462 DEBUG FuseMethodsInvoker:754 - We have 3 configured users and string len is '3' 2011-06-02 07:44:52,462 DEBUG FuseMethodsInvoker:759 - In List files:: User[0] is 'user' 2011-06-02 07:44:52,463 DEBUG FuseMethodsInvoker:759 - In List files:: User[1] is 'OnClose' 2011-06-02 07:44:52,463 DEBUG FuseMethodsInvoker:759 - In List files:: User[2] is 'ReadInfoVerify' 2011-06-02 07:44:52,529 DEBUG FuseMethodsInvoker:743 - Calling javaListFiles with path: '/' 2011-06-02 07:44:52,529 DEBUG FuseMethodsInvoker:299 - Root, so we have to display all subfolders. 2011-06-02 07:44:52,529 DEBUG FuseMethodsInvoker:747 - After Calling GetUser 2011-06-02 07:44:52,529 DEBUG FuseMethodsInvoker:754 - We have 3 configured users and string len is '3' 2011-06-02 07:44:52,529 DEBUG FuseMethodsInvoker:759 - In List files:: User[0] is 'user' 2011-06-02 07:44:52,530 DEBUG FuseMethodsInvoker:759 - In List files:: User[1] is 'OnClose' 2011-06-02 07:44:52,530 DEBUG FuseMethodsInvoker:759 - In List files:: User[2] is 'ReadInfoVerify' 2011-06-02 07:44:52,530 DEBUG FuseMethodsInvoker:800 - Entering javaGetPathInfo with path '/AutoRun.inf' 2011-06-02 07:44:52,535 DEBUG FuseMethodsInvoker:800 - Entering javaGetPathInfo with path '/' 2011-06-02 07:44:52,535 DEBUG FuseMethodsInvoker:299 - Root, so we have to display all subfolders. 2011-06-02 07:44:52,535 DEBUG FuseMethodsInvoker:819 - GetPath User is '/' 2011-06-02 07:44:52,535 DEBUG FuseMethodsInvoker:830 - PathInfo for root is '0' 2011-06-02 07:44:52,535 DEBUG GetPathInfo:51 - Entering root and returning immediately with conf users: 3 2011-06-02 07:44:52,536 DEBUG GetPathInfo:75 - Mode is 16877 2011-06-02 07:44:52,536 DEBUG FuseMethodsInvoker:838 - PathInfos is Ok 2011-06-02 07:44:52,536 DEBUG FuseMethodsInvoker:839 - File mode is 16877 2011-06-02 07:44:52,581 DEBUG FuseMethodsInvoker:720 - Entering javaAccess with path '/' -- mask '1' 2011-06-02 07:44:52,587 DEBUG FuseMethodsInvoker:800 - Entering javaGetPathInfo with path '/desktop.ini' 2011-06-02 07:44:52,587 DEBUG FuseMethodsInvoker:304 - User is 'desktop.ini' 2011-06-02 07:44:52,589 DEBUG FuseMethodsInvoker:855 - size of user map:'3' 2011-06-02 07:44:52,589 DEBUG FuseMethodsInvoker:743 - Calling javaListFiles with path: '/' 2011-06-02 07:44:52,589 DEBUG FuseMethodsInvoker:299 - Root, so we have to display all subfolders. 2011-06-02 07:44:52,590 DEBUG FuseMethodsInvoker:747 - After Calling GetUser 2011-06-02 07:44:52,590 DEBUG FuseMethodsInvoker:754 - We have 3 configured users and string len is '3' 2011-06-02 07:44:52,590 DEBUG FuseMethodsInvoker:759 - In List files:: User[0] is 'user' 2011-06-02 07:44:52,590 DEBUG FuseMethodsInvoker:759 - In List files:: User[1] is 'OnClose' 2011-06-02 07:44:52,590 DEBUG FuseMethodsInvoker:759 - In List files:: User[2] is 'ReadInfoVerify' 2011-06-02 07:44:52,596 DEBUG FuseMethodsInvoker:299 - Root, so we have to display all subfolders. 2011-06-02 07:44:52,596 DEBUG FuseMethodsInvoker:747 - After Calling GetUser 2011-06-02 07:44:52,596 DEBUG FuseMethodsInvoker:754 - We have 3 configured users and string len is '3' 2011-06-02 07:44:52,596 DEBUG FuseMethodsInvoker:759 - In List files:: User[0] is 'user' 2011-06-02 07:44:52,596 DEBUG FuseMethodsInvoker:759 - In List files:: User[1] is 'OnClose' 2011-06-02 07:44:52,596 DEBUG FuseMethodsInvoker:759 - In List files:: User[2] is 'ReadInfoVerify' 2011-06-02 07:44:52,598 DEBUG FuseMethodsInvoker:855 - size of user map:'3' 2011-06-02 07:44:52,598 DEBUG FuseMethodsInvoker:800 - Entering javaGetPathInfo with path '/' 2011-06-02 07:44:52,599 DEBUG FuseMethodsInvoker:299 - Root, so we have to display all subfolders. 2011-06-02 07:44:52,599 DEBUG FuseMethodsInvoker:819 - GetPath User is '/' 2011-06-02 07:44:52,599 DEBUG FuseMethodsInvoker:830 - PathInfo for root is '0' 2011-06-02 07:44:52,599 DEBUG GetPathInfo:51 - Entering root and returning immediately with conf users: 3 2011-06-02 07:44:52,599 DEBUG GetPathInfo:75 - Mode is 16877 2011-06-02 07:44:52,599 DEBUG FuseMethodsInvoker:838 - PathInfos is Ok 2011-06-02 07:44:52,600 DEBUG FuseMethodsInvoker:839 - File mode is 16877 2011-06-02 07:44:52,601 DEBUG FuseMethodsInvoker:800 - Entering javaGetPathInfo with path '/*' 2011-06-02 07:44:52,601 DEBUG FuseMethodsInvoker:304 - User is '*' 2011-06-02 07:44:52,601 DEBUG FuseMethodsInvoker:819 - GetPath User is '*' 2011-06-02 07:44:52,601 DEBUG FuseMethodsInvoker:854 - Getting fmp for user '*' 2011-06-02 07:44:52,602 DEBUG FuseMethodsInvoker:855 - size of user map:'3' 2011-06-02 07:44:52,602 DEBUG FuseMethodsInvoker:800 - Entering javaGetPathInfo with path '/*' 2011-06-02 07:44:52,602 DEBUG FuseMethodsInvoker:304 - User is '*' 2011-06-02 07:44:52,603 DEBUG FuseMethodsInvoker:819 - GetPath User is '*' 2011-06-02 07:44:52,603 DEBUG FuseMethodsInvoker:854 - Getting fmp for user '*' 2011-06-02 07:44:52,604 DEBUG FuseMethodsInvoker:855 - size of user map:'3' |