Linux file Special permissions-SetUID

Source: Internet
Author: User

01, setuid function: Ordinary users in the execution of the command, will temporarily obtain the identity of the owner, ordinary users of the program must have Execute permissions

02, SetUID =

(01) Only binary programs can be set

(02) The executor of the command must have execute (x) permission

(03) The command executor obtains the identity of the file owner when executing the program;

SetUID permissions are valid only during program operation

(05) Set SetUID = CHOMD 4755/file path 4 for SetUID permissions

CHOMD u+s/file path

(06) Cancel SetUID = CHOMD 755/file path

CHOMD u-s/file path

03. Dangerous setuid

(01), the key directory should strictly control the write permission. such as "/", "usr", etc.

(02), the user's password set to strictly abide by the password three principles

(03), to the system should have setuid permissions of the file as a list, is to see if there is no such file is set setuid permissions

Linux file Special permissions-SetUID

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.