- Messages
- 100
- Reaction score
- 0
- Points
- 26
sir baka ito makatulong about sa chmod na makakatulong sa pag change ng mac.
chmod
-c, --changes like verbose but report only when a change is made
--no-preserve-root do not treat `/' specially (the default)
--preserve-root fail to operate recursively on `/'
-f, --silent, --quiet suppress most error messages
-v, verbose output a diagnostic for every file processed
--reference=RFILE use RFILE's mode instead of MODE values
-R, --recursive change files and directories recursively
--help display this help and exit
--version output version information and exit
Permissions
u - User who owns the file.
g - Group that owns the file.
o - Other.
a - All.
r - Read the file.
w - Write or edit the file.
x - Execute or run the file as a program.
Numeric Permissions:
CHMOD can also to attributed by using Numeric Permissions:
400 read by owner
040 read by group
004 read by anybody (other)
200 write by owner
020 write by group
002 write by anybody
100 execute by owner
010 execute by group
001 execute by anybody
chmod Shortcuts
Let’s say we have these files:
-rwxrwxrwx joe acctg wordmatic
-r--r--r-- joe acctg calcmatic
We’d like to remove write permission for the group and others on wordmatic, and add write and execute permission for all users on calcmatic.
Rather than try to figure out what the new permissions are and do these commands:
chmod go=rx wordmatic
chmod a=rwx calcmatic
The chmod command literally lets us add and subtract permissions from an existing set by using + or - instead of =.
Thus, we can take away the first file’s write permission for the group and others with this command:
chmod go-w wordmatic
...and we can add write and execute permission to the second file for all users with:
chmod a+wx calcmatic
sana makatulong po.
chmod
-c, --changes like verbose but report only when a change is made
--no-preserve-root do not treat `/' specially (the default)
--preserve-root fail to operate recursively on `/'
-f, --silent, --quiet suppress most error messages
-v, verbose output a diagnostic for every file processed
--reference=RFILE use RFILE's mode instead of MODE values
-R, --recursive change files and directories recursively
--help display this help and exit
--version output version information and exit
Permissions
u - User who owns the file.
g - Group that owns the file.
o - Other.
a - All.
r - Read the file.
w - Write or edit the file.
x - Execute or run the file as a program.
Numeric Permissions:
CHMOD can also to attributed by using Numeric Permissions:
400 read by owner
040 read by group
004 read by anybody (other)
200 write by owner
020 write by group
002 write by anybody
100 execute by owner
010 execute by group
001 execute by anybody
chmod Shortcuts
Let’s say we have these files:
-rwxrwxrwx joe acctg wordmatic
-r--r--r-- joe acctg calcmatic
We’d like to remove write permission for the group and others on wordmatic, and add write and execute permission for all users on calcmatic.
Rather than try to figure out what the new permissions are and do these commands:
chmod go=rx wordmatic
chmod a=rwx calcmatic
The chmod command literally lets us add and subtract permissions from an existing set by using + or - instead of =.
Thus, we can take away the first file’s write permission for the group and others with this command:
chmod go-w wordmatic
...and we can add write and execute permission to the second file for all users with:
chmod a+wx calcmatic
sana makatulong po.