search
HomeOperation and MaintenanceLinux Operation and MaintenanceLinux terminal prompts insufficient permissions when executing shell script

Linux terminal prompts insufficient permissions when executing shell script

Dec 12, 2019 am 10:30 AM
linuxshellimplementInsufficient permissionsterminalScript

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
What to do if Zookeeper resource occupies a high amount of resources on DebianWhat to do if Zookeeper resource occupies a high amount of resources on DebianApr 13, 2025 am 10:06 AM

When the Zookeeper resource occupies a high level on Debian, the following measures can be taken to optimize and troubleshoot: 1. Check the resource usage using the top or htop command to view the memory and CPU usage of the Zookeeper process. Use the free-m command to view the overall memory usage of the system, including cache and buffers. 2. Analyze the reasons for high resource usage to apply the application level bug: such as memory leaks. You can use tools such as valgrind to analyze the usage of the application and locate memory.

How to uninstall PHPStorm on DebianHow to uninstall PHPStorm on DebianApr 13, 2025 am 10:03 AM

To uninstall PHPStorm on Debian, you can refer to the following steps: Uninstall (if installed via APT) using the APT package manager (if installed via APT). Enter the following command to list all PHPStorm-related packages: dpkg-l|grepphpstorm Uninstall PHPStorm using the following command according to the listed package name: sudoapt-getremove--purgephpstorm Clean up the remaining dependencies: sudoap

Why choose FetchDebian for Debian updateWhy choose FetchDebian for Debian updateApr 13, 2025 am 10:00 AM

Based on the search results, I did not find specific information about why FetchDebian was selected, but I can provide you with some relevant information about Debian updates: Debian update mechanism Debian system updates are done through the APT (AdvancedPackageTool) package manager. APT is a powerful tool that automatically handles the installation, upgrade, configuration and removal of software packages. Debian updates are divided into several types, including security updates, bug fix updates, and feature updates. Update steps

How to customize the GitLab interface in DebianHow to customize the GitLab interface in DebianApr 13, 2025 am 09:57 AM

Customizing the GitLab interface in Debian can be done in the following ways: Change the interface language to Chinese and log in to GitLab and enter settings: Open the browser and access the URL of GitLab. Log in with your administrator account. Click on the user avatar in the upper right corner and select "Settings". Modify the user interface language: Find "Preferences" in the left navigation bar. Select "Chinese from the "UserInterface" drop-down menu

How to implement Debian Hadoop resource isolationHow to implement Debian Hadoop resource isolationApr 13, 2025 am 09:54 AM

Hadoop resource isolation is implemented on Debian mainly through **YARN's cgroups (controlgroups)* for resource management and isolation. The following is the specific implementation method: Overview of cgroups resource isolation: HadoopYARN uses cgroups for resource management and isolation. cgroups is a mechanism provided by the Linux kernel to limit, account, and isolate the resources of process groups (such as CPU, memory, disk I/O, etc.). Supported resources: CPU: Limit each container

How to encrypt data using OpenSSL on DebianHow to encrypt data using OpenSSL on DebianApr 13, 2025 am 09:51 AM

To encrypt data using OpenSSL on Debian, you can follow the following steps: 1. Install OpenSSL First, make sure that OpenSSL is already installed on your Debian system. If not installed, you can use the following command to install: sudoaptupdatesudoaptininstallopenssl2. Encrypted file The basic command format of encrypting files using OpenSSL is as follows: opensslenc-aes-256-cbc-salt-

How to upgrade GitLab version of Debian systemHow to upgrade GitLab version of Debian systemApr 13, 2025 am 09:48 AM

Upgrading the GitLab version on the Debian system can follow the following steps: Method 1: Use the upgrade script provided by GitLab to back up the data. Before any upgrade, please make sure that you back up all important data of GitLab, including repositories, configuration files and databases. Download the latest version of GitLab and visit the official GitLab website to find the latest version suitable for your system, and download the corresponding installation package. Stop GitLab service sudogitlab-ctlstopunicorn

GitLab log management in DebianGitLab log management in DebianApr 13, 2025 am 09:45 AM

Managing GitLab logs in Debian systems usually involves the following key steps and tools: Log file location GitLab's main log files are usually located in the /var/log/gitlab directory. Specifically, production.log records the main log information of the GitLabRails application, while production_json.log contains exception information in JSON format. Use the cat command to view the log: you can check it through the cat command

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)