sudo chmod

Despite having admin rights, I can't execute a file that I need to (it's a Kyocera Permission fix for Kyocera printers running under 10/.6). I read that I can get Read/Write AND Execute rights to a file using the sudo command in the form sudo chmod 755 /path/to/command, run from terminal.


Perhaps the reason I can't execute this file is because I have Read and Write but not Execute rights - trouble is I can't find anywhere 'normal' to assign the Execute rights.

Any experience with the sudo command? The file is on my desktop so I have tried sudo chmod 755 /Users/coz/Desktop/OSX10.6 permissionfix/kyocera OS X 10.6 solution.command

but I get:
chmod: /Users/coz/Desktop/OSX10.6: No such file or directory
chmod: permissionfix/kyocera: No such file or directory
chmod: OS: No such file or directory
chmod: X: No such file or directory
chmod: 10.6: No such file or directory
chmod: solution.command: No such file or directory

Any thoughts on how I might word this sudo command to get the Execute rights?

Macbook 15" Pro, 2.66Ghz i7, 8Gb 1067 RAM, Mac OS X (10.6.3), Various XP, Vista, Win 7 machines

Posted on Jul 5, 2010 7:14 AM

Reply
3 replies

Jul 5, 2010 7:22 AM in response to MosesMulenga

sudo chmod 755 /Users/coz/Desktop/OSX10.6 permissionfix/kyocera OS X 10.6 solution.command


The problem with what you have typed is that it includes spaces, and spaces are the delimiters between parameters in a Unix command. It's reading what you wrote as a series of 6 files you're asking it to change. You can put a backslash ('\') before each space, include quotes around any filename that contains spaces, or best of all, just type the "sudo chmod 755 " part (noting the presence of a space at the end) and then drag the file onto the Terminal window to insert an appropriately-formatted path to it.

All that said, I don't know that I'd recommend monkeying with permissions on that item... I'd recommend contacting Kyocera support and asking them about the problem. They may come back and say to do exactly what you're trying to do, but they may also say something like that you shouldn't use that item and that there's a newer version.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

sudo chmod

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.