[Openvas-discuss] No reports listed on reports page

Landry MINOZA lminoza at mgi.fr
Fri Jul 31 16:18:59 CEST 2015


On 31/07/2015 14:52, Michael Wiegand wrote:
> However, I was able to provoke this or a very similar behaviour by
> removing the executable bit from the following file:
>    share/openvas/openvasmd/global_report_formats/a994b278-1f62-11e1-96ac-406186ea4fc5/generate
>
> All:
> Please check and report the permission of the file in your installation
> of openvas-manager 6.0.4. Does a "chmod +x" on the file improve things
> for you?
Just tested to upgrade from openvas-manager 6.0.3 to 6.0.4, have the bug 
after install but it works with chmod +x.
The permissions on share 
/openvas/openvasmd/global_report_formats/*/generate where:

-rwxr-xr-- 1 root root

And all the daemons runs as root (expected redis which runs as user redis):

ps aux |grep '[o]penvas\|[g]sad\|[r]edis'
root      2463  0.1  0.7 194292 64900 pts/4    SL   15:54   0:01 openvasmd
redis     3113  0.4  0.0  40024  6104 ?        Ssl  juil.28  20:50 /usr/bin/redis-server /etc/redis/redis.conf
root      3176  0.0  0.4 161620 35188 ?        Ss   juil.28   3:38 openvassd: Waiting for incoming connections
root      3201  0.0  0.1  43444 13028 ?        S    juil.28   0:00 /usr/bin/python /usr/local/bin/ospd-debsecan -b 127.0.0.1 -p 1234 -k /usr/local/var/lib/openvas/private/CA/clientkey.pem -c /usr/local/var/lib/openvas/CA/clientcert.pem --ca-file /usr/local/var/lib/openvas/CA/cacert.pem
root      3208  1.5  5.6 735372 459364 ?       Sl   juil.28  65:39 /usr/local/sbin/gsad --listen 0.0.0.0 --gnutls-priorities=SECURE128:-AES-128-CBC:-CAMELLIA-128-CBC:-VERS-SSL3.0:-VERS-TLS1.0
root      3209  0.0  0.0 204952  3808 ?        Sl   juil.28   0:00 /usr/local/sbin/gsad --listen 0.0.0.0 --gnutls-priorities=SECURE128:-AES-128-CBC:-CAMELLIA-128-CBC:-VERS-SSL3.0:-VERS-TLS1.0
root      3211  0.0  0.0   4108  1308 ?        Ss   juil.28   0:00 startpar -f -- gsad
root      3364  0.0  0.0   6136   460 pts/3    S    16:00   0:00 tail -F /usr/local/var/log/openvas/gsad.log /usr/local/var/log/openvas/openvasmd.log /usr/local/var/log/openvas/openvassd.messages

Here is a little transcript of what I did:

ls -lah /usr/local/share/openvas/openvasmd/global_report_formats/*/generate
-rwxr-xr-- 1 root root  942 mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/5057e5cc-b825-11e4-9d0e-28d24461215b/generate
-rwxr-xr-- 1 root root 1,4K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/50c9950a-f326-11e4-800c-28d24461215b/generate
-rwxr-xr-- 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/5ceff8ba-1f62-11e1-ab9f-406186ea4fc5/generate
-rwxr-xr-- 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/6c248850-1f62-11e1-b082-406186ea4fc5/generate
-rwxr-xr-- 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/77bd6c4a-1f62-11e1-abf0-406186ea4fc5/generate
-rwxr-xr-- 1 root root  925 mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/9087b18c-626c-11e3-8892-406186ea4fc5/generate
-rwxr-xr-- 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/910200ca-dc05-11e1-954f-406186ea4fc5/generate
-rwxr-xr-- 1 root root 1,2K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/9ca6fe72-1f62-11e1-9e7c-406186ea4fc5/generate
-rwxr-xr-- 1 root root 1,8K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/9e5e5deb-879e-4ecc-8be6-a71cd0875cdd/generate
-rwxr-xr-- 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/a3810a62-1f62-11e1-9219-406186ea4fc5/generate
-rwxr-xr-- 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/a684c02c-b531-11e1-bdc2-406186ea4fc5/generate
-rwxr-xr-- 1 root root 1019 mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/a994b278-1f62-11e1-96ac-406186ea4fc5/generate
-rwxr-xr-- 1 root root 2,3K avril 29 10:19 /usr/local/share/openvas/openvasmd/global_report_formats/c15ad349-bd8d-457a-880a-c7056532ee15/generate
-rwxr-xr-- 1 root root  938 mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/c1645568-627a-11e3-a660-406186ea4fc5/generate
-rwxr-xr-- 1 root root 1,5K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/c402cc3e-b531-11e1-9163-406186ea4fc5/generate

chmod +x /usr/local/share/openvas/openvasmd/global_report_formats/*/generate

ls -lah /usr/local/share/openvas/openvasmd/global_report_formats/*/generate
-rwxr-xr-x 1 root root  942 mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/5057e5cc-b825-11e4-9d0e-28d24461215b/generate
-rwxr-xr-x 1 root root 1,4K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/50c9950a-f326-11e4-800c-28d24461215b/generate
-rwxr-xr-x 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/5ceff8ba-1f62-11e1-ab9f-406186ea4fc5/generate
-rwxr-xr-x 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/6c248850-1f62-11e1-b082-406186ea4fc5/generate
-rwxr-xr-x 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/77bd6c4a-1f62-11e1-abf0-406186ea4fc5/generate
-rwxr-xr-x 1 root root  925 mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/9087b18c-626c-11e3-8892-406186ea4fc5/generate
-rwxr-xr-x 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/910200ca-dc05-11e1-954f-406186ea4fc5/generate
-rwxr-xr-x 1 root root 1,2K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/9ca6fe72-1f62-11e1-9e7c-406186ea4fc5/generate
-rwxr-xr-x 1 root root 1,8K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/9e5e5deb-879e-4ecc-8be6-a71cd0875cdd/generate
-rwxr-xr-x 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/a3810a62-1f62-11e1-9219-406186ea4fc5/generate
-rwxr-xr-x 1 root root 1,1K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/a684c02c-b531-11e1-bdc2-406186ea4fc5/generate
-rwxr-xr-x 1 root root 1019 mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/a994b278-1f62-11e1-96ac-406186ea4fc5/generate
-rwxr-xr-x 1 root root 2,3K avril 29 10:19 /usr/local/share/openvas/openvasmd/global_report_formats/c15ad349-bd8d-457a-880a-c7056532ee15/generate
-rwxr-xr-x 1 root root  938 mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/c1645568-627a-11e3-a660-406186ea4fc5/generate
-rwxr-xr-x 1 root root 1,5K mai   11 12:52 /usr/local/share/openvas/openvasmd/global_report_formats/c402cc3e-b531-11e1-9163-406186ea4fc5/generate

To be sure, I also "chmod +x" on global_alert_methods and 
global_schema_formats:

chmod +x /usr/local/share/openvas/openvasmd/global_alert_methods/*/alert
chmod +x /usr/local/share/openvas/openvasmd/global_schema_formats/*/generate

Thanks a lot for your help.
-- 

*Landry MINOZA*
MGI Sud-Ouest/
Chef de projet technique Linux et réseaux/
E-mail : lminoza at mgi.fr <mailto:lminoza at mgi.fr>

	

Tél :01 45 44 54 10

MGI France :11 rue de Téhéran - 75008 Paris | RCS: Paris B 382 770 584 
|www.mgi.fr <http://www.mgi.fr>
MGI SO :281 route d'Espagne - 31100 Toulouse | RCS: Toulouse B 421 125 
816 |www.mgi.fr <http://www.mgi.fr>
MGI Suisse :5 avenue de Rothorn - CH3960 Sierre | TVA 517-269 
|www.mgiconsultants.ch <http://www.mgiconsultants.ch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wald.intevation.org/pipermail/openvas-discuss/attachments/20150731/3c11a19f/attachment.html>


More information about the Openvas-discuss mailing list