If you can see this check that
| next section | prev section | up | prev page | next page |
You can also specify permissions for chmod using a number, using the format:
chmod number filenamewhere number is a three-digit or four-digit number specifying what permissions you want to assign to a file. If you use a three digit number then the system considers this to be equal to a four digit number with a leading 0. Each of the digits sequentially sets permissions for each of the four classes of special, owner, group, and other. The filename is the name of the file you want to modify. The class of "special" is used very rarely, and for our purposes is always 0.
The values for any digit related to owner, group, or other are derived from adding the value of the permissions from the following list:
For example, again assume 'myfile' has the following default permissions:
-rwxr-----. 1 john staff 500 Nov 18 12:25 myfileIf we wish to give the group 'staff' write access to 'myfile' we could use the following command:
% chmod 760 myfile % ls -l myfile -rwxrw----. 1 john staff 500 Nov 18 12:25 myfileSo in this case "760" is exactly the same as using "0760". Four digit permissions are considered more correct but in reality will almost always perform exactly the same as the three digit versions.
The following table shows the equivalency between numberic and symbolic
for the chmod command.
| Linux tutorials: | intro1 intro2 wildcard permission pipe vi essential admin net fwall DNS diag Apache1 Apache2 MySQL1 MySQL2 |
| Caine 2.0: | Autopsy Cli PartRec Files FileRec Browser FFoxForensics Carving |
| Caine 2.5.1: | Essentials | Basic | Search | SysIntro | 5a | 5b | 5c | 6 | 7 | 8a | 8b | 9a | 9b | 10 |
| Useful: | Quiz | Forums | Privacy Policy | Terms and Conditions |
| Site Links: | XMLZoo ActiveSQL ProgZoo SQLZoo |
Copyright @ 2004-2012 Gordon Russell. All rights reserved.