LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-08-2011, 07:56 AM   #1
iternity
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Samba: Permission denied only when mounting fuse partition


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 (iFSG-EE is the name of the fuse mountpoint)

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 (I have also tried to set it to 777, but it was the same problem):
drwxr-xr-x. 5 root root 4096 Dec 10 15:15 iFSG-EE

I am getting the ls event under RHEL 6 in my fuse debug output, but I am not sure where that Permission denied comes from?
Any pointers would be greatly appreciated,

Oh, and also the Samba versions are different:
RHEL5: Version 3.0.33-3.29.el5_6.2
RHEL6: Version 3.5.6-86.el6

Could a newer version of Samba cause the problem?

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'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fuse mount point - Permission Denied sethusubbiah Linux - Newbie 2 05-16-2015 07:42 AM
remote mount of nfs gives permission denied error - FUSE file sytem, bob.keslin@oracle.com Linux - Newbie 1 04-06-2011 04:50 PM
Help with mounting samba share: smbmount or mount.cifs error: permission denied wdli Linux - Server 1 08-11-2009 11:31 PM
samba shared win box partition permission denied matters Slackware 8 04-11-2009 02:22 AM
NFS mounting : Permission denied Bahador Linux - Networking 3 07-18-2003 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration