Solved

Differences in chmod a+x between OSX 10.6 and 10.8?

Posted on 2013-06-20
5
520 Views
Last Modified: 2013-06-21
Hi,
If I run the following sequence on an OSX 10.6 machine:
chmod a+x filename
ls -l

Open in new window

the results of ls show the "filaname" in red and with an asterisk (*).  

If I do the same on an OSX 10.8 machine, it sets the +x permission but does not show red and asterisk.  



I am not sure if it really is significant, but I believe that it is affecting an XCode project I am working on, where I am triggering the file and receive a  "../devtools/bin/odfrc-cmd: Not a directory" error.

What am I missing?
0
Comment
Question by:TechBento
  • 3
  • 2
5 Comments
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 300 total points
ID: 39265057
It's about the colors but not about the OS version.
Change the Appearance of Terminal Windows Quickly

A bit more complicated way:
How to Fix Colors on Mac OSX Terminal

You need to edit .bash_profile and add something like:
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

(In Teminal type "nano .bash_profile"  to edit this file, Ctrl-O, Ctrl-X,... - to save changes, etc. )

You can find few color chemes in github, for example:
https://github.com/mbadolato/iTerm2-Color-Schemes
0
 
LVL 2

Author Comment

by:TechBento
ID: 39265503
I am familiar with that, but I don't believe that's entirely it.    Still does not address the lack of "*" at the end of the file name (which signifies executable) and the obvious error when I try to access the script from xCode.     I am convinced I have a shell script execution issue tied to security, and I think this behavior is a symptom of it.

Also, on the 10.6 machine, chmod +x causes the file to be "black" with no "*" while "chmod a+x" gives it the characteristics.
0
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 39266193
chmod +x change the file attribute ('x' means eXecutable permission). That's all what it does.
chmod
0
 
LVL 2

Author Comment

by:TechBento
ID: 39266241
Mystery solved.. Sort of...

You were right about the colors, and the executable attribute is present.

ls -l was not the best command to use to confirm this;  "ls -F" indicates the "*" and confirms we're good there.  

This leaves me with the main problem: why on earth I can't run that file from xCode.  Oh well, closing this thread..
0
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 39267526
If you are talking about the chmod, you can launch before or after the project building in Xcode.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

The error "There was an error performing the update" occurred on a Mac OS X client workstation running  Symantec AntiVirus for Mac (http://www.symantec.com/business/products/purchasing.jsp?pcid=pcat_security&pvid=825_1) - the Enterprise product vers…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now