LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-17-2007, 01:50 PM   #1
TexanJoe
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
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
 
Old 10-19-2007, 04:57 AM   #2
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Correct Syntax for ethtool kaplan71 Linux - Networking 1 08-21-2007 12:30 AM
What is the correct syntax for Lame darkscot Linux - Software 2 08-14-2006 01:29 AM
Correct syntax to disable pcmcia? wickedbob Linux - Newbie 2 06-05-2004 05:15 AM
correct syntax for a canonical file? rioguia Linux - Software 1 11-04-2003 02:11 AM
what is the correct syntax shanenin Linux - Software 2 10-19-2003 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration