6 , copy the/etc/grub.cfg configuration file to the/tmp directory, and use the Find replacement command to delete the white space character at the beginning of the/tmp/grub.cfg file;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/D0/wKiom1Xtmu3i7YAwAAAOBE8_w7o695.jpg "title=" 6.jpg " alt= "Wkiom1xtmu3i7yawaaaobe8_w7o695.jpg"/>
7 , copy the/etc/rc.d/init.d/functions file to the/tmp directory, add a # to the beginning of the line at the beginning of each line of/tmp/functions with the find replacement command, and the original whitespace character;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/D0/wKiom1XtmxygTrXCAAC9aLWRX28693.jpg "title=" 7.png " alt= "Wkiom1xtmxygtrxcaac9alwrx28693.jpg"/>
8 , replace the/etc/sysconfig/init in the/tmp/functions file as/var/log;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/CD/wKioL1XtnibBvCYHAABekXtQZBk174.jpg "title=" 8.png " alt= "Wkiol1xtnibbvcyhaabekxtqzbk174.jpg"/>
9 , delete the beginning of the line in the/tmp/functions file so #, and # followed by at least one white-space character #;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/CD/wKioL1XtnkWyswHjAAAX5846_K8469.jpg "title=" 9.png " alt= "Wkiol1xtnkwyswhjaaax5846_k8469.jpg"/>
Ten , find the/var directory is the owner of the root, and belong to the group mail all files;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/CD/wKioL1XtnlujEwrRAACRJ6f1Ya8511.jpg "title=" 10.png "alt=" Wkiol1xtnlujewrraacrj6f1ya8511.jpg "/>
One , look for all files that do not belong to root, bin, or Hadoop in the/usr directory;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/CD/wKioL1XtnnOjdSEJAACxvjTnoZE061.jpg "title=" 11.png "alt=" Wkiol1xtnnojdsejaacxvjtnoze061.jpg "/>
A , find all files whose contents have been modified and are not root or Hadoop for the most recent week in/etc directory;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/D1/wKiom1XtnGeT9us5AABvZtXE3X4242.jpg "title=" 12.png "alt=" Wkiom1xtnget9us5aabvztxe3x4242.jpg "/>
- , find all files on the current system that are not owned by the master or group, and have been visited in the last week;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/D1/wKiom1XtnH-z6liIAAAuYDq21MQ046.jpg "title=" 13.png "alt=" Wkiom1xtnh-z6liiaaauydq21mq046.jpg "/>
- , look for all files that are larger than 20k in the/etc directory and are of the normal file type;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/CD/wKioL1Xtnrvh6raqAAFqkqx_d4Y477.jpg "title=" 14.png "alt=" Wkiol1xtnrvh6raqaafqkqx_d4y477.jpg "/>
the , find files in/etc directory where all users do not have permission to write;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/D1/wKiom1XtnKijZVDtAADySPULrRU796.jpg "title=" 15.png "alt=" Wkiom1xtnkijzvdtaadyspulrru796.jpg "/>
- , find at least one class of users who do not have permission to execute files in/etc directory;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/D1/wKiom1XtnL3yM_PzAADHa8-YIWU698.jpg "title=" 16.png "alt=" Wkiom1xtnl3ym_pzaadha8-yiwu698.jpg "/>
- , find/etc/init.d directory, all users have execute permission, and other users have write permission files;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/CD/wKioL1Xtnv-xHD9EAABtXGZ9Jno537.jpg "title=" 17.png "alt=" Wkiol1xtnv-xhd9eaabtxgz9jno537.jpg "/>
- , so that ordinary users can use/tmp/cat to view/etc/shadow files;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/D1/wKiom1XtnPqxNlopAAA-O9Rpqgo408.jpg "style=" float: none; "title=" 18.png "alt=" Wkiom1xtnpqxnlopaaa-o9rpqgo408.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/CE/wKioL1XtnyTSyVxlAAFAitTWYgI722.jpg "style=" float: none; "title=" 18.2.png "alt=" Wkiol1xtnytsyvxlaafaittwygi722.jpg "/>
+ , Create a directory/test/data, let a group of ordinary users have write permissions to it, and all the files created by the group of directories belong to the group, in addition, each user can only delete their own files;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/D1/wKiom1XtnSaz79AeAAAhaCtHvNk311.jpg "style=" float: none; "title=" 19.png "alt=" Wkiom1xtnsaz79aeaaahacthvnk311.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/CE/wKioL1Xtn0-hazZ5AAButsMo8EM379.jpg "style=" float: none; "title=" 19.2.png "alt=" Wkiol1xtn0-hazz5aabutsmo8em379.jpg "/>
Linux OPS Practice-August 30, 2015 Course assignments (2)