Want to know how to change owner of directory in linux? we have a huge selection of how to change owner of directory in linux information on alibabacloud.com
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
1.Ubuntu Create directory Command format: mkdir [options] directory ... Command features: The mkdir command enables you to create a directory named with the specified name at the specified location. The user who created the directory must have
First, Chown commandPurpose: Change the owner or group of the file. The command is composed of the word change owner.Examples of Use:1. Change the owner of the file:Chown Jim Program.cChange the owner of the file program.c to Jim. As an owner, Jim
1, the Linux file attributes;
The properties of a Linux file or directory mainly include: The node of the file or directory, the type, the permission mode, the number of links, the users and user groups, the time of the most recent visit or
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
, usingchown CommandChange file ownerin the shell, you can use thechown Commandto change the file owner. chown Commandis the abbreviation for change owner (changing owner). It is important to note thatThe user must be in an existing system, which
In Linux, it can be queried by PS and grep. If using the PS aux|grep nginx to query the Nginx process using what account run: Visible is the use of the WWW account running. Then the corresponding site root directory and the following file directory
Http://www.cnblogs.com/peida/archive/2012/12/04/2800684.htmlChown 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
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 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.