Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins即使具有读取权限也无法读取文件_Jenkins_Centos7 - Fatal编程技术网

Jenkins即使具有读取权限也无法读取文件

Jenkins即使具有读取权限也无法读取文件,jenkins,centos7,Jenkins,Centos7,我在CentOS 7上安装了Jenkins。我有一个运行简单命令的管道 steps { sh label: '', script: 'ls -l /DATA00/tomcat/tomcat-orion/lib/annotations-api.jar' } 以下是输出: ls:无法访问/DATA00/tomcat/tomcat orion/lib/annotations-api.jar:权限被拒绝 以下是文件和目录的权限: drwxr-xr--. 5 we

我在CentOS 7上安装了Jenkins。我有一个运行简单命令的管道

steps
     {
        sh label: '', script: 'ls -l /DATA00/tomcat/tomcat-orion/lib/annotations-api.jar'
     }
以下是输出:

ls:无法访问/DATA00/tomcat/tomcat orion/lib/annotations-api.jar:权限被拒绝

以下是文件和目录的权限:

drwxr-xr--.   5 webadm01 webadm01   49 19:32 29 Th06     DATA00
drwxr-xr--.   3 webadm01 webadm01   26 18:29 22 Th06     tomcat
drwxrw-r--.   9 webadm01 webadm01   258 17:26 29 Th06    tomcat-orion
drwxr-xr--.   2 webadm01 webadm01   4096 10:28 23 Th06   lib
-rw-r--r--.   1 webadm01 webadm01   12373 05:19  4 Th06  annotations-api.jar
当我以webadm01的身份登录服务器时,我可以运行命令
ls-l/DATA00/tomcat/tomcat orion/lib/annotations api.jar

这里怎么了

更新

用户Jenkins不属于组webadm01


我尝试了
chmod775
到所有目录,然后詹金斯成功地运行了这个命令。据我所知,读取权限足以对文件/目录运行ls。是不是正确?

目录上需要x

Read读取目录列表(书籍的索引),execute允许您对其内容(章节和内容)进行操作。阿卡,看,但不要碰