You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ yasat --html --html-output /tmp/yasat.html
Found /etc/yasat/yasat.conf
Enabling output in /home/noraj/.yasat/yasat.html
HTML output is /tmp/yasat.html
Using YASAT version [ 848 ]
Using YASAT with UID!=0 Some test may fail [ WARNING ]
Press ENTER to continue Ctrl/C to quit
Using YASAT without SELinux [ OK ]
Detecting OS... [ DONE ]
arch Linux ArchLinux
Detecting TERM width... [ 236 ]
Color chart
GREEN is for good configuration or information
RED is for configuration that must be corrected
ORANGE is for optional configuration that can be done
BLUE is for information
At the end of the audit, the report will be available at /home/noraj/.yasat//yasat.report
ls: cannot access '/usr/share/yasat/plugins//*.advice': Permission denied
/usr/bin/yasat: line 508: /usr/share/yasat//yasat.advices: Permission denied
ls: cannot access '/usr/share/yasat/plugins//*test': Permission denied
Yasat tries to write in it's root directory (/usr/share/yasat) but can't without root priv
@noraj It is needed to add a control that check if the tool is run as root (or by sudo) and, if not, write in home folder... I can try to rewrite the code of that tool, submit a PR and push on the maintainer for merging. If you agree with this approach on the code, I will do it. Let me know.
Bug description
Yasat tries to write in it's root directory (
/usr/share/yasat
) but can't without root privhttps://github.com/montjoie/yasat/blob/0eead3d12d2cfa9b0bb69ba16f3319f2dbc682f2/yasat#L508
I'm wondering if there is a possibility to modify the configuration to be able to run the tool without root priv.
https://github.com/BlackArch/blackarch/blob/master/packages/yasat/yasat.conf
The text was updated successfully, but these errors were encountered: