In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to upload file permissions on CVM. Many people may not know much about it. In order to make you understand better, the editor summarized the following content for you. I hope you can gain something according to this article.
How to upload CVM file permissions?
Different permissions can be set for CVM files. In Linux systems, for example, there are three most common file permissions: read (r), write (w) and execute (x, executable file or directory) permissions.
In Linux CVM, each file clearly specifies the access rights of users with different identities, which can be seen through the ls command.
In addition, we sometimes see s (for executable files or directories, so that files temporarily have the permissions of the file owner at run time) and t (for directories, any user can create files in this directory, but can only delete their own files), and files set s and t permissions will occupy the location of the x permission.
For example, we log in to the Linux CVM as root and execute the following instructions:
[root@localhost] # ls-altotal 156drwxr Murray Murray. 4 root root 4096 Sep 8 14:06. Drwxr-xr-x. 23 root root 4096 Sep 8 14:21.-rw-. 1 root root 1474 Sep 4 18:27 anaconda-ks.cfg-rw-. 1 root root 199 Sep 8 17:14 .bash _ history-rw-r--r--. 1 root root 24 Jan 6 2007 .bash _ logout...
As you can see, the first column of each line represents the permissions set by each file for different users, with a total of 11 bits, but the first bit is used to indicate the specific type of file, and the last bit of this file is governed by SELinux security rules.
Therefore, only 9 characters are involved in setting read, write and execute permissions for different users of CVM files. In Linux systems, the file owners and groups to which most files belong are root (created by root accounts).
After reading the above, do you have any further understanding of how to upload file permissions on CVM? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.