Linux file permissions and directory configuration

Source: Internet
Author: User

Directory of Linux System account information:

Account information:/etc/passwd

Personal Password:/etc/shadow

All group name:/etc/group

D: Catalogue

-: Archive

L: Connection File

B: can be random storage device

C: Disposable reading Device (mouse, keyboard)

rwx:r=4 (readable) w=2 (writable) x=1 (executable)

[-] [RWX] [R-x] [r--] meaning?

1 234 567 890

1: For archives

234: Owner permissions. Readable writable Executable

567: Same group User rights. Readable executable

890: Other user rights. Readable


[Email protected] ~]# ls-l/etc/shadow

-R--------1 root root 1124 10-21 15:57/etc/shadow

/etc/shadow only Root can read


CHGRP: Change the group that the file belongs to

-R: Recursive change, all files in the same directory

Chown: Changing the file owner

chmod: Change file permissions: Suid,sgid. Sbit and other characteristics


This article is from the Linux Operations sharing blog, so be sure to keep this source http://liangey.blog.51cto.com/9097868/1571268

Linux file permissions and directory configuration

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.