Sgid special permissions, which are used for files or directories, that allow a normal user (others, who have execute privileges) to execute this file or directory temporarily, and to have the permissions of that file or directory group. The file or directory with Sgid special permissions is displayed in yellow, and the group permission execution bit is not X, but s.
Example 1 action on the file:/bin/ls of the owner and the group are root, ordinary users do LS is not able to view the root user's home directory/root, if/bin/ls plus sgid special permissions, ordinary users can access the/root directory.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8B/8B/wKiom1hQyNXwrgLyAAA0xmhWdt4798.png-wh_500x0-wm_3 -wmp_4-s_2458908925.png "title=" 1.png "alt=" Wkiom1hqynxwrglyaaa0xmhwdt4798.png-wh_50 "/>
Example 2 acting on the directory: normal user rachy in the directory/tmp/222 under the new file and directory of the group are rachy, but to the directory/tmp/222 plus sgid special permissions, the normal user rachy in the directory/tmp/ 222 under New files and directories the genus Group is changed to root. In order to rachy test the role of Sgid, the root built directory/tmp/222 set to 777 permissions.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8B/87/wKioL1hQyOPBT3doAABixdaeBOQ806.png-wh_500x0-wm_3 -wmp_4-s_3683641904.png "title=" 2.png "alt=" Wkiol1hqyopbt3doaabixdaeboq806.png-wh_50 "/>
Sgid Special Permissions