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

wojnest

macrumors newbie
Original poster
Jan 13, 2014
15
0
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.
 
It shouldn't matter if he's the owner or not. Sudo can chmod anything.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.