Jenkins cannot open directory Permission denied

0 votes

I am using Jenkins to 'execute shell' command

ls -l /mnt/ftpbackup/ftpuser/*

But getting error

ls: cannot open directory /mnt/ftpbackup/ftpuser/: Permission denied
Aug 8, 2018 in Jenkins by Hannah
• 18,070 points
1,195 views

1 answer to this question.

0 votes
Try whoami command to find out which user jenkins is using to execute commands.

pass a command in "execute shell" as "whoami"

If you are executing in any node, jenkins will connect to that node using the credentials you have provided in node settings, please have a look at that.
answered Aug 8, 2018 by Kalgi
• 51,890 points

Related Questions In Jenkins

0 votes
2 answers

/tmp/jenkins7925067706776714433.sh: ./deploy: Permission denied in jenkins

To avoid this error, You should add ...READ MORE

answered Mar 31 in Jenkins by akhtar
• 18,730 points
289 views
+1 vote
1 answer

Unable to access Jenkins. I newly installed Jenkins but for some reason I cannot access it.

Try changing the port, Change JENKINS_AJP_PORT="xyz" to JENKINS_AJP_PORT="abc" If changing the ...READ MORE

answered Jul 4, 2018 in Jenkins by Sophie may
• 9,940 points
1,082 views
0 votes
2 answers

How can I point Jenkins to another .jenkins home directory?

Here are the options you have: a) Assuming ...READ MORE

answered Aug 7, 2019 in Jenkins by Sirajul
• 55,700 points
1,093 views
0 votes
3 answers

Error: ‘Jenkins: Cannot define variable in pipeline stage’

https://stackoverflow.com/questions/39832862/jenkins-cannot-define-var ...READ MORE

answered Mar 13, 2019 in Jenkins by Charles Wu
2,176 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
607 views
0 votes
1 answer
+2 votes
3 answers

Permission denied error while running a simple job in Jenkins

Hey @Hannah, try changing the permissions using ...READ MORE

answered Oct 25, 2018 in Jenkins by krishti
19,560 views
+5 votes
5 answers

Jenkins properties file

Follow these steps: 1. Install ‘EnvInject’ plug-in in the Jenkins ...READ MORE

answered Aug 2, 2018 in Jenkins by lina
• 8,200 points
14,867 views