sudo -x error

Discussion in 'OS X Yosemite (10.10)' started by wojnest, Sep 1, 2015.

  1. wojnest macrumors newbie

    Joined:
    Jan 13, 2014
    #1
    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?
     
  2. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #2
    What command, exactly, are you typing?
     
  3. wojnest thread starter macrumors newbie

    Joined:
    Jan 13, 2014
  4. vexorg macrumors 6502a

    Joined:
    Aug 4, 2009
    #4
    Are you the owner of the file?

    I normally just use numbers, "chmod 777 file.txt", or whatever for the permissions you need.
     
  5. wojnest thread starter macrumors newbie

    Joined:
    Jan 13, 2014
  6. vexorg macrumors 6502a

    Joined:
    Aug 4, 2009
  7. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #7
    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.
     
  8. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #8
    Perhaps you have the file located in some weird folder?
     
  9. Dargoth macrumors regular

    Dargoth

    Joined:
    Oct 27, 2014
    #9
    It shouldn't matter if he's the owner or not. Sudo can chmod anything.
     
  10. Toutou macrumors 6502a

    Toutou

    Joined:
    Jan 6, 2015
    Location:
    Prague, Czech Republic
    #10
    Yes, "sudo chmod +x FILE" should work even on a "----------" file in a "d---------" folder. This is really weird.
     
  11. vexorg macrumors 6502a

    Joined:
    Aug 4, 2009
    #11
    Maybe more of a side issue, why use sudo if you are the owner?
     

Share This Page