Importance of Linux file attributes-general Linux technology-Linux technology and application information. For more information, see. Unlike Windows systems, in Linux systems (or Unix-Like systems), many attributes are added to each file, especially the concept of user groups. What is the purpose of this? Basically, the biggest purpose is "security ". For example, in the system, only the root user can read or write the system service files, or execute the files managed by the/etc/shadow account, because this file records the data of all accounts in the system, it is a very important information file. Of course, it cannot be read by anyone. Only the root user can read the data.
Therefore, the attribute of the file will become [-rw -------].
So what if you have a development team in which you want everyone to use files in some directories rather than others in the team? In the preceding example, there are three members in the testgroup team: test1, test2, and test3. Then, you can set the file attribute of test1 to [-rwxrwx ---] for use by the team of testgroup. This is important.
For example, if the directory permission is not properly configured, other people may be able to tamper with the system. For example, if the switch is enabled only by the root user, the ADSL dialing, adding or deleting users, and other operations can be performed by anyone, the user will accidentally restart the system, dial again and so on. Then, the system will often crash inexplicably. In addition, if the user password is obtained by another unidentified person, as long as he logs into your system, he can easily perform some root work. Terrible. Therefore, before modifying the attributes of linux Files And Directories, you must first understand what is variable and what is immutable. 10 million notes.
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