Home >Operation and Maintenance >CentOS >How to solve CentOS prompt about insufficient permissions

How to solve CentOS prompt about insufficient permissions

angryTom
angryTomOriginal
2020-03-18 13:20:2825006browse

How to solve CentOS prompt about insufficient permissions

How to solve CentOS prompt about insufficient permissions

When executing a file, CentOS prompts about insufficient permissions because the file does not have execution permissions. The solution is as follows:

1. First su switch to the root user

2. Enter ls -l (this is to view the detailed information of the file) and check the file permissions

3. If When there is an item similar to: "-wr--r-wr-" without "x", it proves that the file does not have executable permissions

4. Add executable permissions and enter the command: "chmod 777 program name" can

execute the file again, and you will not be prompted for insufficient permissions.

This article comes from the PHP Chinese website, CentOS usage tutorial column, please pay attention to this column for more related tutorials!

The above is the detailed content of How to solve CentOS prompt about insufficient permissions. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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