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

王林
Release: 2019-12-12 10:30:23
Original
7634 people have browsed it

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 &
Copy after login

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: 权限不够
Copy after login

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
Copy after login

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!

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