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