Home >Operation and Maintenance >Linux Operation and Maintenance >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!