Samba Issues [ALMOST SOLVED] still need help
Mikkel L. Ellertson
mikkel at infinity-ltd.com
Tue Jul 7 22:17:03 UTC 2009
Mike Adolf wrote:
> I think I have samba set up correctly to share a linux folder within a
> windows WORKGROUP of PCs. The problem is selinux keeps denying access to
> the share and tells me that I can fix the problem using
>
> chcon -R -t samba_share_t 'myshare path'
>
> HOWEVER, when I try it, I get the following error for each file in the
> folder.
>
> chcon: failed to change context of `some file name' to
> `system_u:object_r:samba_share_t:s0': Operation not supported.
>
> Google turned up others having this problem back in 2007. Some just gave
> up and disabled selinux. I don't want to do that. Could the problem be
> due to the ntfs file system on the shared folder? If I change it to ext
> how does windows use it?
>
> Mike
>
>
>
>
Yes, the problem is the ntfs - it does not support SELinux
attributes. You can fix the problem by add the
context=system_u:object_r:samba_share_t:s0 option to the fstab entry
used to mount the ntfs partition.
When using Samba to share out files, it does not matter what file
system the server is using - it looks like a Windows share to the
computer accessing it. All my Samba shares are on ext3 file systems
here.
Mikkel
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090707/cdc65a48/attachment-0001.sig>
More information about the fedora-list
mailing list