Command name: chmod Permission: All UsersUsage: 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 usedTo control how an archive
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
Command name: chown
Permission: root
Usage: chown [-cfhvR] [-- help] [-- version] user [: group] file...
Note: Linux/Unix is a multi-person, multi-job operating system. All archives have owners. Chown can be used to change the owner of an archive.
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
Today to share 2 commands are also commonly used in our usual, chmod and chown seems to spell a bit similar, but the use of the two is different. Chmod is used to set folder and file permissions, such as our VPS host files can not read and write,
Chown changes the owner of the specified file to the specified user or group, the user can be a user name or a user ID, the group can be a group name or a group ID, and the file is a space-separated list of files to change permissions, and wildcard
Chown changes the owner of the specified file to the specified user or group, the user can be a user name or a user ID, the group can be a group name or a group ID, and the file is a space-separated list of files to change permissions, and wildcard
As shown, create a new user Masterbai under root privileges, and add some information to the/etc/passwd fileIn this file, the user information of the server, such as the red box user, is the user we created, and up to 2-25 of the users, belonging to
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
Each file and directory in a Linux system has access permissions, which are used to determine who can access and manipulate files and directories.Access to a file or directory is divided into read-only, write-only, and executable three types. As an
Chown Introduction to Commands: command to change the owner of a file (this command can only be used by an administrator)1 . Command format:Chown USERNAME Files2 . Command function:Commands to change the owner of a folder3 . Command parameters:-
ArticleDirectory
Parameters
Option
Example
Change the file owner or the group associated with the file
Chown [Options]Owner file-list
Chown [Options]Owner: group file-list
Chown [Options]Owner: file-list
Chown [Options]:
Each file and directory in a Linux system has access permission to determine who can access and manipulate files and directories in any way.
File or directory access is divided into read-only, write-only and executable three kinds. In the case of a
I. Interpretation of file permissionsAs shown, the beginning of the-rwxrw-r--string identifies the file permissions.This string has 10 bits, which can be divided into 4 segments to interpret. Note: r--readable, w--writable, x--executable.The first
using Linux/unix next. Often use the text interface to set up the system or the operating system, the author is in command of this aspect of the process of continuous contact. Therefore, in order toThis special brewing, preparation, began the
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
Chown can change the owner or group of a file. The file is a list of files separated by spaces to change permissions. Wildcards are supported.
The system administrator often uses the CHOWN command to grant the user the permission to use the file
File or directory Permissions chmodEach file or directory has its own permissions. If starting from the second column nine permission bits, divided into three segments. R=4 w=2 x=1, respectively, can be expressed in numbers. Rwx=7 rw-=6--x=1 rw-r--r-
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
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
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.