Home >Operation and Maintenance >Linux Operation and Maintenance >Linux terminal prompts insufficient permissions when executing shell script

Linux terminal prompts insufficient permissions when executing shell script

王林
王林Original
2019-12-12 10:30:237643browse

Linux terminal prompts insufficient permissions when executing shell script

Problem description:

Today I tried to set up a working environment for dynamips in Linux. I encountered a small problem when executing the shell script. There is a file called start.sh. Script file, the content is as follows:

#!/bin/bash
./dynamips.bin -H 7200 &

Free video tutorial recommendation: linux video tutorial

After executing the shell script in the terminal, the following problem occurs:

[root]# ./start.sh
bash: ./start.sh: 权限不够

Solution:

First use the chmod command to grant permissions to the shell script, and then execute the command:

[root]# chmod 777 ./start.sh
[root]# ./start.sh

Recommended related article tutorials: linux tutorial

The above is the detailed content of Linux terminal prompts insufficient permissions when executing shell script. 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