Chown is a command used to set file owners and file associations in UNIX systems.

Source: Internet
Author: User

ChownIs a command used to set file owners and file associations in UNIX systems. Super User Permissions are required to execute this command. Only the file owner of the file group and the super user can change the file association group. If you do not have permissions, you may need to use the chgrp command to set the association group.

Usage
# Chown root/var/run/httpd. PID
  • Set the owner of/var/run/httpd. PID to root.
# Chown ROB: developers strace. Log
  • Set strace. Log owner to rob and the file association group to developers.
# Chown: 512/home
  • Set the/home association group to 512 (Association group ID) without changing the owner.
# Chown-R Us Base
  • Set base and the owner of all files under its directory to us. The-r option recursively modifies the owner and group users of all files in the directory hierarchy.

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.