Imported from the Apple Support Forums via the Wayback Machine 🔗
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?
Imported from the Apple Support Forums via the Wayback Machine 🔗
Just discovered a cool thing about OS X, I just dragged the file into the Terminal window and dropped it in after the 755 - and it worked! Crikey!
0
thomas_r.·
Imported from the Apple Support Forums via the Wayback Machine 🔗
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.