In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the difference between chown and chmod under linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Chown modifies the user and user group properties of files and folders
one. To modify the owner of the file hh.c. It is owned by the user who changed it to sakia.
Chown sakia hh.c
This applies the user access of hh.c to sakia as the owner
two. Change the owner and group of the directory / tmp/sco to sakia and group net
Chown-R sakia:net / tmp/sco baby named http://www.bbqmw.net/qm_yeqm
Chmod modifies read-write execution properties of files and folders
one. Modify the hh.c file to be writable, readable and executable
Chmod 777 hh.c
To modify all file attributes in a directory to be writable, readable and executable
Chmod 777.
Replace the folder name and suffix name with *.
By the same token, if you want to modify the properties of all htm files
Chmod 777 * .htm
two. Modify the directory / tmp/sco to be writable, readable and executable
Chmod 777 / tmp/sco
To modify all folder properties under a directory to be writable, readable and executable
Chmod 777 *
Just replace the folder name with *.
To modify the properties of all files and folders and their subfolders under / tmp/sco to be writable, readable and executable
Chmod-R 777 / tmp/sco
Writable wish4
Readable riter2
Executable xroom1
777 is full access. You can freely combine the permissions of users and groups as needed
This is the end of the content of "the difference between chown and chmod under linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.