?
Solved

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

Posted on 2013-06-20
5
Medium Priority
?
540 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 1200 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

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The /etc/authorization file in Mac OS X 10.x can be used to control access to the various panes of the System Preferences amongst other things. It’s used by some of us Mac Sys Admin’s to give Standard Users access to System Prefs panes that only adm…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

719 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