Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wojnest

macrumors newbie
Original poster
When I try to make a file executable, terminal shows: 'permission denied'. Of course I tried to use this command with sudo prefix but unfortunately this problem still occurs.

What should I do?
 
When I try to make a file executable, terminal shows: 'permission denied'. Of course I tried to use this command with sudo prefix but unfortunately this problem still occurs.

What should I do?
What command, exactly, are you typing?
 
Are you the owner of the file?

I normally just use numbers, "chmod 777 file.txt", or whatever for the permissions you need.
 
Yes, I am the owner.
What file are you changing, in which version of OS X?
As I asked before: exactly what command are you typing? (include the file name and path.) The output of
Code:
ls -le
for the directory where the file is stored would be useful too.
 
Yes, "sudo chmod +x FILE" should work even on a "----------" file in a "d---------" folder. This is really weird.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.