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?
 

chrfr

macrumors G5
Jul 11, 2009
13,710
7,280
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?
 

vexorg

macrumors 6502a
Aug 4, 2009
622
53
Are you the owner of the file?

I normally just use numbers, "chmod 777 file.txt", or whatever for the permissions you need.
 

chrfr

macrumors G5
Jul 11, 2009
13,710
7,280
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.
 

Dargoth

macrumors regular
Oct 27, 2014
242
372
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.