SELinux prevents Samba from sharing NTFS mounts.
Johnny Tan
linuxweb at gmail.com
Thu Dec 13 13:20:42 UTC 2007
Petteri Kautonen wrote:
> Hi,
> I have F8 and every time to I try to access remotely or locally NTFS
> filesystems that shared via Samba I get a warning (at the end of this
> mesage) from SELinux troubleshooter and can't access the share.
> I have tried to mount the filesystem with different context's but none
> of them seem to do anything. The shares worked with previous version of
> Fedora (F7). I have tried to mount the NTFS volume doing the following
> to change it context:
> * mount -t ntfs-3g /dev/sda1 /mnt/petteri-c -o
> context=system_u:system_r:smbd_t
> * mount -t ntfs-3g /dev/sda1 /mnt/petteri-c -o
> context=system_u:object_r:smbd_t
> * mount -t ntfs-3g /dev/sda1 /mnt/petteri-c -o
> fscontext=system_u:object_r:samba_share_t
> and various other mount options such as defcontext= and changed the
> context=, fscontext=, and defcontext= parameter values.
> But the context stays the same (ls --lcontext):
> drwxrwxrwx 1 _system_u:object_r:fusefs_t_ root root 12288
> 2007-12-12 21:13 petteri-c
I think this might be similar to my httpd/nfs question a
couple days ago.
Do you have other mounts of /dev/sda1 besides the
/mnt/petteri-c?
johnn
More information about the fedora-selinux-list
mailing list