Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The setting of permissions under Linux (1. How to view and read permission information, 2. Setting

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

How to view and read permission information

How to view file properties and directory properties

Understanding of the fields of the attribute

Understanding of file attribute fields 1 type 2 file permissions file permissions 3SELinux ContentSELinux Content4 file hard links number of subdirectories 5 number of file owners 6 file owners group files have group 7 file size directory subfile or subdirectory metadata size 8 the contents of the directory were last modified One modified time 9 file name directory name file owner and ownership group

File ownership group and ownership group

Linux is a multi-user and multi-task system. Many people often use the same host to work at the same time. They classify users by considering everyone's right to privacy and their preferred working environment.

User's identity division of the file

1. File owner (user)

two。 Group to which the file belongs (group)

3. Others (other)

Change the file owner and the method of owning the group

File owners and ownership groups can only be modified by superuser root

The way to change is as follows

Chown user name file chgrp group name file chown-R user name directory chgrp-R group name directory chown user name: group name file | directory

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report