LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   What is the correct syntax for chcon (https://www.linuxquestions.org/questions/linux-security-4/what-is-the-correct-syntax-for-chcon-592549/)

TexanJoe 10-17-2007 01:50 PM

What is the correct syntax for chcon
 
The chcon command is giving me a invalid argument error using the syntax below.
I am using the variable ($USER_MAGIC_FOLDER_$) in the install anywhere project but I have tested it with the literal path to the lib fille and get the same error.
I have also removed the first "/" in the syntax.
What am I doing wrong?

chcon -c -v -R -u system_u -r object_r -t lib_t /$USER_MAGIC_FOLDER_2$/lib/libxvtxmba570.so
chcon -t texrel_shlib_t /$USER_MAGIC_FOLDER_2$/lib/libxvtxmba570.so

slimm609 10-19-2007 04:57 AM

Can you post the error that you are getting. It will help alot.

also that variable does not look correct.
try
echo $USER_MAGIC_FOLDER_2 and see what you get. I dont think there should be a $ at the end.


All times are GMT -5. The time now is 10:56 AM.