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
• 14,070 points

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
• 40,460 points

Related Questions In Jenkins

0 votes
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,530 points
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 in Jenkins by Sirajul
• 25,700 points
0 votes
3 answers

Error: ‘Jenkins: Cannot define variable in pipeline stage’ ...READ MORE

answered Mar 13 in Jenkins by Charles Wu
0 votes
1 answer

Unable to open Jenkins in master vm

There seems to be an issue with ...READ MORE

answered Dec 18, 2018 in Jenkins by Charlie

edited Dec 20, 2018 44 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,380 points
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
+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,110 points