LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   samba share problem (https://www.linuxquestions.org/questions/linux-server-73/samba-share-problem-901336/)

suresh.k 09-06-2011 12:25 AM

samba share problem
 
Hi,
Iam using centos5.5 already configured the samba server.
I changed one folder in config file and i changed the path in config file the iam giving "chcon -t samba_share_t /soft" it is showing that chcon: can't apply partial context to unlabeled file /soft/
what is the problem and how to fix it.
Thanks

smallpond 09-07-2011 08:12 PM

Quote:

Originally Posted by suresh.k (Post 4462532)
Hi,
Iam using centos5.5 already configured the samba server.
I changed one folder in config file and i changed the path in config file the iam giving "chcon -t samba_share_t /soft" it is showing that chcon: can't apply partial context to unlabeled file /soft/
what is the problem and how to fix it.
Thanks

The problem is just what it says. You can't set just the type part of the context unless the file is already labeled with user and role. Use ls -Z to see what the file is now, and restorecon to set a default label.


All times are GMT -5. The time now is 12:26 PM.