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,550 points
2,114 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
• 52,310 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, 2020 in Jenkins by akhtar
• 38,170 points
883 views
0 votes
1 answer

Access Denied user is missing the Job/Create permission in Jenkins.

Hi@akhtar, The user doesn't have sufficient permission to ...READ MORE

answered Dec 6, 2020 in Jenkins by MD
• 95,160 points
262 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
• 10,550 points
2,671 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
• 59,050 points
2,155 views
+15 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,450 points
1,064 views
+2 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
27,918 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,220 points
18,927 views