2006/2/23, Paul Howarth <paul@xxxxxxxxxxxx>: > 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?? -- Dovydas Sankauskas