In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
How to change the owner of the file in linux? In response to this problem, the editor summed up this article today, hoping to help more friends who want to solve this problem to find a more simple and feasible way.
The command to change the owner of a file in linux is the chown command.
The chown command is used to change the owner of the file, that is, to change the owner of the file to another specified user or group.
Command format:
Chown [options]... [user] [: [group]] file.
For example:
Sudo chown book:book / work-R
Parameter description:
-R [recursion]: recursively change all files in this directory
Let's take a look at the results of the changes:
Enter the ls-ld work command, and you can see that work the directory permissions are managed by book, so that book users can write and read files.
As shown in the figure:
The method of changing the owner of the file in linux is shared here. I hope the above content can be of some help to everyone and can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.