/ home / A, owner of a_user
/ home / B, owner of b_user
And c and so on
.......................................
How to change all / home / * files under the parent directory owner?
Can an order ? Or must bash script?
------ Solution ---------------------------------- ----------
chown-R
------ Solution ---------------------- ----------------------
directly change / home permissions on the line.
look at , the assumption is home_userp
then
chown-R home_user / home
-R will recursively modify the directory of all files and folders , and subfolders recursively modify the files and folders.
------ Solution ---------------------------------------- ----
/ home / A, owner of a_user
/ home / B, owner of b_user
this situation is how it happened to change the entire home landlord is the owner of rights , and if the second floor is the way you can, if in accordance with A a_user, B b_user , then it is estimated that use script executed.
------ Solution ---------------------------------------- ----
chown -R wildlily980 /home
------ Solution ------------------------------ --------------
so script it.
also relatively easy to write a script .
There are also some script chown-R command only.
------ For reference only -------------------------------------- -
not clearly described , simply, this is the virtual host directory , there are hundreds, each directory has a different owner , a_user, b_user ...
home / A The following files or directories to be changed owner = a_user
home / B the following files or directories to be changed owner = b_user
seems quite complex, and only the script ?
没有评论:
发表评论