Sgid Special Permissions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.