Linux Extended permissions

Source: Internet
Author: User
Default Permissions

Practice: Use the umask command to view the value of the Umask property of the normal user and root user, respectively.

Special permissions

Practice: Add a group, two users, to do the next verification

First, add a group: TESTGRP, two users, TestUser1 and TestUser2.

Create the folder Linuxcast.net under/temp/, and specify the group that owns the folder as Testgrp.

Here's how to start the validation.

First create a Testfile1 file and set the SUID permissions for the file.

Set the Sgid permissions for the folder Linuxcast.net first, and then create two files Testfile2 and testfile3 to see if the files belong to the same group as the directory.

Finally, to verify the sticky permissions, Set the sticky permissions for the folder linuxcast.net first, then switch to TestUser1 user to create the file Testfile4 under the folder, and then switch to user TestUser2 to see if the file Testfile4 can be deleted.

Linux Extended 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.