Re: Samba shares

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel B. Thurman wrote:
Mikkel L. Ellertson wrote:
|Daniel B. Thurman wrote:
|> I already tried that:
|> /dev/sda1 /AV ntfs |defaults,context=system_u:object_r:samba_share_t 1 2 |> |> Umounting and remounting still retains fusefs_t context. |> |You have to set the context every time you mount it, because the |NTFS does not support contexts...

How is it possible to chcon -t samba_share_t /AV when
the operation is refused?  Seems to me you cannot change
context no matter what you do?

You can change the context on the /AV directory before
mounting, but when you mount /AV, context is permenently
fusefs_t thus chcon operations will be refused.

Please advise,
Dan

mount -o context=system_u:object_r:samba_share_t:s0 -t ntfs /dev/sda /AV

For a fstab entry, try something like:

/dev/sda1 /AV ntfs context=system_u:object_r:samba_share_t:s0 1 2

You have to have the :s0 or it will generate an error.

Mikkel
--

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux