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
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
Command name: chmod permission: Usage of all users: chmod [-cfvR] [-- help] [-- version] modefile... note: file access permissions for Linux/Unix are classified into three levels: file owner, group, and others. The chmod can be used to control the
[[Email protected]/]#Ls-ltotal 64dr-xr-xr-x 24096 dec 14 2012 Bin-rwxrwxr-x 44096 apr 19 2012 main.c
When [ D ] is the directory
When [ - ] is the document;
If [ l ] is indicated as a linked document (link file);
If [ b
Linux CHMOD and chown commands
Command name: chmod Permission: All Users Usage: chmod [-CFVR] [-- help] [-- version] mode file... Note: file access permissions for Linux/Unix are classified into three
Iv. Linux/UNIX operating command accumulation [chmod, chown, tail], chmodchownIn Linux/UNIX, users often use the text interface to set the system or operating system. The author is constantly in touch with this command during his work, therefore,
One, the use of chown and chmod commands
directive Name: chmod
Use Rights: All users
How to use: chmod [-CFVR] [--help] [--version] Mode file ...
Description: Linux/unix file access rights are divided into three levels: file owners, groups,
The Chown command alters the owner of a file or directory and the group it belongs to, which can authorize a user to become the owner of the specified file or to change the group to which the file belongs.(1) Usage:usage: chown [Options] ... Owner [:
Linux command to change the file owner and group syntax: www.2cto. comchown [OPTION] [OWNER] [: [GROUP] FILEchown [OPTION] -- referenceRFILEFILE description: chown changes the user and/or GROUP of the specified file... linux command chown change
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.