SELinux blocking access to Samba share which is mounted on ntfs-3g filesystem
Issue
Unable to access samba share from windows or linux clients.
Samba share is mounted on ntfs-3g filesystem.
Entry in /etc/fstab -
/dev/sdd5 /mnt/NTFSdrives/GISData ntfs-3g auto,users,uid=0,gid=500,umask00,rw 0 0
Mount shows -
/dev/sdd5 on /mnt/NTFSdrives/GISData type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096)
SELinux context on mount point
# ls -lZd /mnt/NTFSdrives/GISData/
drwxrwxrwx root geogadmin system_u:object_r:fusefs_t /mnt/NTFSdrives/GISData/
These errors are reported in samba logs when user attempt to access samba share -
[2009/12/09 00:19:06, 0] smbd/service.c:make_connection_snum(1012)
'/mnt/NTFSdrives/GISData' does not exist or permission denied when connecting to [Data] Error was Permission denied
SELinux error -
Dec 8 22:13:24 www setroubleshoot: SELinux is preventing samba (smbd) "getattr" to /mnt/NTFSdrives/GISData (fusefs_t). For complete SELinux messages. run sealert -l ccf4f944-fc66-4775-9306-67d7cd2e7f91
Environment
Red Hat Enterprise Linux Server release 5.4
samba-3.0.33-3.15.el5_4.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.