The permissions of the file are important to us (no one wants to have their hard-written files disappear for a while or find that they have been modified without their knowledge) so there is a need to modify the file permissions and properties;
Here are the common commands for modifying permissions
chgrp: Modify the user group that the file belongs to;
chown: Change the file owner;
chmod: Change the permissions of the file;
Change the owning user group: CHGRP [change to be that group name (must be an existing group)] [file name]
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/82/5A/wKiom1dSJa-jpZpeAAA1hRhuXbs457.png "title=" QQ picture 20160604085028.png "alt=" Wkiom1dsja-jpzpeaaa1hrhuxbs457.png "/>
Change file owner: chown [owner name] [FileName]
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/82/59/wKioL1dSKxiCNBxKAAA9E-GgSf8606.png "title=" QQ picture 20160604090918.png "alt=" Wkiol1dskxicnbxkaaa9e-ggsf8606.png "/>
When copying files, it is often necessary to change the properties and permissions of the file, because the properties and permissions of the copied files are not changed, so it is necessary to use the instructions above!
Number Type Change permissions: chmod [number] [filename]
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/82/5B/wKiom1dSMP7jQpohAAAhueYCfsg846.png "title=" Chmod.png "alt=" Wkiom1dsmp7jqpohaaahueycfsg846.png "/>
The number of three bits indicates that rwx three groups are represented by three numbers;
1->x 2->w 4->r
With these three combinations you can get the desired permission;
Symbol type Change permissions: chmod [(u/g/o/a) (+/-/=) (r/w/x) [file name]
U-> owner G-> belongs to the group o-> other people a-> three have
+-> plus a permission--Remove a permission =-> settings
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/82/5A/wKioL1dSPFrSmBjAAABRFhRiRhc326.png "title=" Chmod2.png "alt=" Wkiol1dspfrsmbjaaabrfhrirhc326.png "/>
There is the wrong place to welcome the message;
Learn and grow together.
This article is from the "end-of-the-guest" blog, please be sure to keep this source http://zheng2048.blog.51cto.com/10612048/1786032
File properties and permissions for files changed under Linux