File permission settings

Source: Internet
Author: User

1. Create file a.txt set to rwx r_x

Chmod A.txt


method 2 chmod g+x a.txt


2, Modify /root/a.txt owner for qiming belongs to group Xuegod

Chown qingming:xuegod a.txt


3 ', if umask value is 044 log in as root create file b.txt default permissions Why?

RWX WX WX | 733 All users can write executable trojan ??

3, all permissions for The 777 directory /bin


4 . Create a file that no one can delete


Vi C.txt

Chattr +i +a c.txt Delete permission chattr-i–a view lsattr c.txt


File permission settings

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.