How to solve the problem of insufficient permissions when executing files in centos

Release: 2020-03-23 16:40:00
Original
6716 people have browsed it

How to solve the problem of insufficient permissions when executing files in centos

Modifying permissions can solve this problem.

You can use the chmod command to modify permissions.

Syntax: chmod [-cfvR] [--help] [--version] mode file...

Description: Linux/Unix file calling permissions are divided into three levels: File ownership person, group, other. Use chmod to control how files are accessed by others.

Parameters:

mode: Permission setting string, the format is as follows: [ugoa...][[ -=][rwxX]...][,...], Among them,

u represents the owner of the file, g represents the person who belongs to the same group as the owner of the file, o represents other people, and a represents all three.

means adding permissions, - means canceling permissions, = means only setting permissions.

r means readable, w means writable, x means executable, and X means only when the file is a subdirectory or the file has been set to be executable.

-c : If the file permissions have indeed been changed, only display the change action

-f : If the file permissions cannot be changed, do not display the error message

- v : Display detailed information of permission changes

-R : Make the same permission changes to all files and subdirectories in the current directory (that is, change them one by one in a recursive manner)

-- help : Display auxiliary instructions

--version : Display version

The above is the detailed content of How to solve the problem of insufficient permissions when executing files in centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template