Documente Academic
Documente Profesional
Documente Cultură
2) Type the following into Terminal, leaving a space after the final character. Do
not press return yet.
Code:
ls -l
(That's lowercase-L before the s and after the hyphen.)
3) Drag the file you wish to open and drop it into the Terminal window. This will
append the file's location to the command you entered, but will not actually
move the file.
4) Now click on the Terminal window to make it active, and press return.
The file is owned by Amin, who has permission to read and write. The file is not
executable.
User Amin should be able to read/write to this file (assuming it's a text file)
using TextEdit (for example).
Code:
Code:
Code:
chmod 755 ~/Desktop/keygen_osx
to make the file executable.
Then enter
Code:
~/Desktop/keygen_osx
to execute it.
test account :
Code:
Last login: Sun Feb 13 02:06:46 on console
Amins-MacBook:~ test$ chmod u+x/Users/test/Desktop/keygen_osx
usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ...
chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...
Amins-MacBook:~ test$ /Users/test/Desktop/keygen_osx
.
:
|
______|____
_\ /
\ ___\
- ---- \_ __\__--- - [ e ] m b r a c e -- - --- ----- --------
/ /
/____________\
| ... try E once ...
|
: ... and your addicted!
.
Code:
Last login: Sat Feb 12 17:24:09 on ttys000
Amins-MacBook:~ Amin$ chmod u+x/Users/Amin/Desktop/keygen_osx
usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ...
chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...
Amins-MacBook:~ Amin$ /Users/Amin/Desktop/keygen_osx
-bash: /Users/Amin/Desktop/keygen_osx: Permission denied
I typed the same thing in both.
---
The chmod 755 command worked! thank you LPZ for your time.
as I know chmod 755 means read and execute access for everyone and also write
access for the owner of the file.
according to the last log I posted I already had read/write access.
I still don't know what the problem was!
http://www.maclife.com/article/feature/25_terminal_tips_every_mac_user_sho
uld_know
http://stackoverflow.com/questions/12276507/run-script-on-mac-prompt-
permission-denied
https://developer.apple.com/library/mac/documentation/Darwin/Reference/
ManPages/man8/sudo.8.html
http://smallbusiness.chron.com/terminal-permission-denied-os-x-31587.html