linux遇到的问题-bash权限不够

1.问题描述

linux打开/运行某文件,报错--bash权限不够

2.案例

访问apache-tomcat-9.0.82/bin目录下的./version.sh

[root@localhost bin]# ./version.sh
-bash: ./version.sh: 权限不够

解决方法:先查看资源的路径pwd

给该路径加权限(chmod)

chmod a+x /usr/local/apache-tomcat-9.0.82/bin/*

最后在访问./version.sh(不会报错)

linux遇到的问题-bash权限不够_第1张图片


 

你可能感兴趣的:(Linux,问题,linux,运维)