Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

R1-001 echo.sh

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

[hhu@hhu ch2] $vim echo.sh #! / bin/bash cd / tmp echo "hello world!"

Without adding executable permission to the file, the sh command can still be executed, but you cannot use. / to execute [hhu@hhu ch2] $ll total 4-rw-rw-r-- 1 hhu hhu 42 Mar 2 15:22 echo.sh [hhu@hhu ch2] $sh echo.sh hello world! [hhu@hhu ch2] $. / echo.sh-bash:. / echo.sh: Permission denied [hhu@hhu ch2] $chmod + x echo.sh [hhu@hhu ch2] $. / echo.sh hello world!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report