Linux File Properties Change command

Source: Internet
Author: User

Chown

When we want to change the owner of a file, the user we use must be the owner of the file and be a member of the target group, or Superuser. Only super users can change the owner of the file.

Chown Syntax:

chown [Options] ... Owner [: [Group]] file ...

Example: The owner of the A.txt file is changed to Yonghu user;

Method:

Chown user files or directories #<== only authorized users

Chown: Group file or directory #<== only authorized. Equivalent to "chgrp group file or directory"

Chown User: Group file or directory #<== represents authorized users and groups

Emphasize:

1) where the colon ":" can use the dot number "." Alternative

2) The user and group name to be authorized must be the actual existence of the Linux system.

Linux File Properties Change command

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.