Can't reach external hdd via ftp
Paul Howarth
paul at city-fan.org
Thu Feb 23 12:07:51 UTC 2006
Dovydas Sankauskas wrote:
> 2006/2/23, Paul Howarth <paul at city-fan.org>:
>
>>I see the the external drive is formatted xfs; I'm not sure if xfs
>>supports SELinux contexts fully, so I think there are two things to try.
>>
>>First, try:
>># chcon -R user_u:object_r:user_home_t /home/dovydas/muzika
>>
>>An "ls -lZ /home/dovydas/muzika" should then show all files having the
>>context set above. If not, you'll need to change a mount option instead,
>>adding fscontext=user_u:object_r:user_home_t, e.g. in /etc/fstab:
>>
>>/dev/sda1 /home/dovydas/muzika xfs fscontext=user_u:object_r:user_home_t
>>0 0
>>
>>Paul.
>
>
> Thanks Paul! I did
> # chcon -R user_u:object_r:user_home_t /home/dovydas/muzika
> and all files changed context to user_u:object_r:user_home_t and I can
> see them via ftp, but new created files have the old context
> system_u:object_r:file_t. When I do MKDIR when connected via ftp, I
> create that dir, but it is not visible.
>
> How can I make my fresh created files have context user_u:object_r:user_home_t??
I'm not sure why that's happening. Newly-created files and directories
are usually supposed to inherit their parent's context. You might try
fedora-selinux-list for that.
A workaround you might try in the meantime would be to use the fscontext
mount option as mentioned above and see if that helps.
Paul.
More information about the fedora-list
mailing list