In the LUnix system, the control of the permissions of a file or directory is managed by the owner and the group being sued. You can use the CHGRP command to change the file and directory to belong to the group, this way with the group name or group
The liunx command chown is used to change the owner of a specified file to the specified user or group chown. the user can be a user name or user ID; A group can be a group name or group ID. files are separated by spaces to change the permission
Command name: chmod
Permission: All Users
Usage: chmod [-CFVR] [-- help] [-- version] mode file...
Note: file access permissions for Linux/Unix are classified into three levels: file owner, group, and others. Chmod can be used
To control how
Chown to change the main or owning group of a fileChange file owner: #chown Zek 123.txt (Zek is the name of the owner)#ls-L 123.txt-rw-rw-rw-1 Zek Root 12777 December 4 20:31 123.txtChange file to group such as: #chown: User1 123.txt# ls-l
1. Role
Change the owner and owner group of one or more files or directories. The usage permission is superuser. 2. Format
chown [Options] User or group file 3. Main parameters
–dereference: Affected is the object indicated by the symbolic link,
Chown the owner of the specified file to the specified user or group, the user can be either a user name or a user ID; a group can be a group name or a group ID; a file is a space-separated list of files to change permissions, and wildcard
User groupsEach user in Linux must belong to a group and cannot be independent of the group. Each file in Linux has the concept of owner, group, other group-Owner-Group-Other groups-Change the group where the user is locatedOwnerTypically the
The chown command is used to change the owner and group of files or directories. The superuser permission is required to use this command.
Introduction
The chown command is used to change the owner and group of files or directories. This command
The liunx command chown is used to change the owner of a specified file to the specified user or group chown. the user can be a user name or user ID; A group can be a group name or group ID. Files are separated by spaces to change the permission
Chown can change the owner and group commands of files or directories on disks to facilitate permission Control for users.
Chown
[Syntax] chown [Options] [parameters][Details] The chown command is used to change the owner or group of a specified
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.