Permission denied @ rb_sysopen
Hi,
I have been trying to set up a Jenkins job for arachni security
check. The shell command is:
./arachni http://mycompanytestwebsite/ --checks=csrf
--report-save-path=rifs-web${BUILD_NUMBER}.afr
However, the following error was received:
... 19:02:58 [+] Without issues: 1443
19:02:58 [-] With issues: 0 ( 0% )
19:02:58 [-] [ui/cli/framework#run:112] [Errno::EACCES] Permission
denied @ rb_sysopen - rifs-web12.afr
19:02:58 [-] [ui/cli/framework#run:112]
/var/lib/jenkins/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/report.rb:157:in
binwrite' 19:02:58 [-] [ui/cli/framework#run:112]
/var/lib/jenkins/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/lib/arachni/report.rb:157:insave'
19:02:58 [-] [ui/cli/framework#run:112]
/var/lib/jenkins/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/ui/cli/framework.rb:378:in
generate_reports' 19:02:58 [-] [ui/cli/framework#run:112]
/var/lib/jenkins/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/ui/cli/framework.rb:94:inrun'
19:02:58 [-] [ui/cli/framework#run:112]
/var/lib/jenkins/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/ui/cli/framework.rb:49:in
initialize' 19:02:58 [-] [ui/cli/framework#run:112]
/var/lib/jenkins/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/bin/arachni:12:innew'
19:02:58 [-] [ui/cli/framework#run:112]
/var/lib/jenkins/arachni-1.4-0.5.10/system/gems/gems/arachni-1.4/bin/arachni:12:in
<top (required)>' 19:02:58 [-]
[ui/cli/framework#run:112]
/var/lib/jenkins/arachni-1.4-0.5.10/bin/../system/arachni-ui-web/bin/arachni:16:inload'
19:02:58 [-] [ui/cli/framework#run:112]
/var/lib/jenkins/arachni-1.4-0.5.10/bin/../system/arachni-ui-web/bin/arachni:16:in
`'
19:02:58 Build step 'Execute shell' marked build as failure
19:02:58 Finished: FAILURE
Is this because no report being generated due to no issue being found?
Many thanks
Feng
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by Tasos Laskos on 05 Oct, 2016 09:52 PM
Hello,
You seem to be running Arachni from a directory for which it doesn't have write privileges.
Better place the package to a different directory.
2 Posted by Feng Xu on 06 Oct, 2016 10:05 AM
Thanks for your quick response!
Yes it works since the report is placed somewhere else instead of arachni bin directory.
Support Staff 3 Posted by Tasos Laskos on 06 Oct, 2016 11:10 AM
No problem.
Tasos Laskos closed this discussion on 06 Oct, 2016 11:10 AM.