View Issue Details

IDProjectCategoryView StatusLast Update
0007292Kali LinuxGeneral Bugpublic2021-08-24 09:04
Reportervanguard Assigned Tosbrun  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0007292: gvm - script "gvm-check-setup" gives wrong advice
Description

Dear maintainer,

I looked through the gvm-check-setup script, and I think, that should be improved. Please let me explain:

In first line of the script, it is telling you, that the script must run as user root, but no advice, that this also can be run
using sudo (I do not know, if this is working either, as I could not test it. On my systems I am working as root, never with sudo).

Ok, if you are then root, and the script mourns an error, it gives you an advice, something like

"FIX: sudo runuser whatever"

But if you are already root, sudo will not be needed and not work. I think this very confusing.

The solution? My suggestion would be, either change the "FIX: **"-lines or add a new hint at the "root"-check, for example

if you are not root and sudo is enabled, an echo like "FIX: run 'sudo gvm-check-setup' ", or if you are not root and there is no sudo available, an echo like "FIX: There is no sudo, become root"

For the second one, maybe an advice could be added, because executing "su" is different from "su -", and this may add a new, but avoidable issue.

Oh, if I am wrong, because my systems are "weired", just drop me a note and close this bug.

Thank you for reading this.

Best

Hans

Activities

sbrun

sbrun

2021-08-24 09:04

manager   ~0015021

Thanks for the report. Working as root is neither the default nor the recommended method.
All the messages and checks are for usual cases. I don't think we want/can to adapt for the other cases

Issue History

Date Modified Username Field Change
2021-08-22 15:03 vanguard New Issue
2021-08-23 20:39 g0tmi1k Severity tweak => minor
2021-08-23 20:41 g0tmi1k Assigned To => sbrun
2021-08-23 20:41 g0tmi1k Status new => assigned
2021-08-24 09:04 sbrun Status assigned => closed
2021-08-24 09:04 sbrun Resolution open => no change required
2021-08-24 09:04 sbrun Note Added: 0015021