Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables don't work #62

Closed
brianbeaven opened this issue Sep 6, 2018 · 4 comments
Closed

Environment variables don't work #62

brianbeaven opened this issue Sep 6, 2018 · 4 comments

Comments

@brianbeaven
Copy link

Hello,

I am trying to use zap-cli and I am running into this issue upon attempting to start the process. "ZAP was not found in the path "/zap". You can set the path to where ZAP is installed on your system using the --zap-path command line parameter or by default using the ZAP_PATH environment variable."

I have ZAP_PATH environment variable set to where ZAP proxy is installed in both User and System variables and I'm still getting that error.

@brianbeaven
Copy link
Author

Ok, now when I try running zap-cli start I get:

?[1m?[36m[INFO] ?[0mStarting ZAP daemon
Traceback (most recent call last):
[stack trace]
PermissionError: [Errno 13] Permission denied: 'C:\Program Files\OWASP\Zed Attack Proxy\zap.log'

Any help with this?

@Grunny
Copy link
Owner

Grunny commented Sep 26, 2018

For that, you just need to make sure you have write permissions to the file C:\Program Files\OWASP\Zed Attack Proxy\zap.log, so I'd create that file and make sure the permissions are correct. This is where the output of the ZAP process itself will be saved.

@g4z
Copy link
Contributor

g4z commented Sep 30, 2018

hi, on my Ubuntu system, ZAP is installed in /opt/ZAP and this folder and all files therein are owned by the root user.

I (or any other user) can run ZAP UI using the command /opt/ZAP/zap.sh and everything works fine.

zap-cli seems to want permission to write a log into the directory where ZAP is installed. This assumes that the user running zap-cli has r/w access to the ZAP install.

perhaps it would be possible to add a new flag like --output to zap-cli so i can tell it where i want the output written, rather than assuming i have write access to the installation location.

EDIT: i see your response to this same issue in this issue. The problem is when a user does not have root/sudo access on a machine... then there is no way to run zap-cli!

@Grunny
Copy link
Owner

Grunny commented Nov 23, 2018

Closing as #64 is merged.

@Grunny Grunny closed this as completed Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants