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,520 points
7,007 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,350 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,260 points
3,674 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 7, 2020 in Jenkins by MD
• 95,460 points
4,506 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,620 points
8,303 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,230 points
5,005 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 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
58,443 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
28,305 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP