Change all child files and subdirectories owner permissions in Ubuntu

Source: Internet
Author: User

Transferred from: http://www.linuxidc.com/Linux/2015-03/114695.htm

There are two modifications in Ubuntu that can be used, "change Mode"&"change owner"

That is, chmod and chown, which can use the recursive parameter-r to change permissions for all child files and subdirectories.

1, the use of chmod Modify permissions:

Perform the same permissions changes for all sub-files in the document/directory as subdirectories:

Chmod-r document/

-r parameter is all files and subfolders under the recursive processing directory

700 is a changed permission representation (only the owner has permission to read and write and execute)

document/is the directory that needs to be executed

2. Use Chown to change the owner:

Perform the same owner change for all files in the document/directory as the subdirectory, modifying the username user who is the owner of the users user group

Chown-r username:users document/

Username:users Users user group username, user group parameters are not required to have

Bulk modification of file and folder owner and permissions http://www.linuxidc.com/Linux/2012-08/67840.htm under Linux

This article permanently updates the link address : http://www.linuxidc.com/Linux/2015-03/114695.htm

Change all child files and subdirectories owner permissions in Ubuntu

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.