Note "Bird's Linux Private cuisine" 6 Linux file permissions and directory configuration

Source: Internet
Author: User

/etc/passwd

    • User-related information

/etc/shadow

    • Password related information

/etc/group

    • Group name Related information

Chgrp

    • CHGRP group_a xxx Change file group genus
    • CHGRP group_b-r XXX Change directory and the following group genera

Chown

    • Chown user_a xxx Change file owner
    • Chown user_a-r XXX Change directory and the following group genera

chmod

    • chmod 751 XXX Change file/directory permissions
    • chmod u+r g-w o=rwx xxx Change file/directory permissions (U:user, G:group, O:other)

/etc

    • Configuration
    • Cannot be separated from the root directory on different partitions

/bin/

    • command to be used on boot
    • Commands that can be used in single-user maintenance mode
    • Cannot be separated from the root directory on different partitions

/sbin/

    • command to be used on boot
    • Non-root users can only use "query" and cannot "change"
    • Cannot be separated from the root directory on different partitions

/lib/

    • The library that will be used to boot
    • Cannot be separated from the root directory on different partitions

/boot/

    • Files that are used by the boot

/dev/

    • Equipment
    • Cannot be separated from the root directory on different partitions

/media/

    • Mounted Devices

/mnt/

    • Devices that are temporarily mounted

/root/

    • Root User home folder

/home/

    • Other User home folders

/proc/,/sys/

    • System state that is placed in memory

/etc/init.d/

    • Service startup scripts

/usr/bin/

    • Non-mandatory user commands

/usr/sbin/

    • Non-mandatory system commands

/usr/include/

    • Program Language header File

/usr/lib/

    • Library files, destination files

/usr/share/

    • Share files
    • System-Independent text files

/usr/src/linux/

    • System source

/var/log

    • Log in and record information

/var/lock

    • Resource lock

/var/cache

    • Caching resources

Note "Bird's Linux Private cuisine" 6 Linux file permissions and directory configuration

Related Article

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.