No sudo permission error- Linux discovery

digrajkar
Tera Contributor

Hi All,

I am getting no sudo permissions for Linux servers, it seems that those are related to disk probes

No sudo permission for this command: sh /tmp/snc-3995289024028623685-hd.sh

As per liux admin they have provided all sudo permissons.

Appreciate any help to fix this.

tthx

sm

3 REPLIES 3

wdlee
Kilo Explorer

Are all the unix commands in /tmp/snc-3995289024028623685-hd.sh in the sudo permissions file for the user ID logging into the server?



What specifically is in the .sh shell script?



Also, some times you need to specify 'cat *' and not just cat in the sudoers file.


digrajkar
Tera Contributor

Thanks Wdlee.



Actually it is hd.sh script from Linux disk probe.


Fixed that issue by adding /bin/grep and /bin/sh to sudoers file.



But still I am facing issue like, I am seeing disk data collected in payload but not getting populated in cmdb.


I am using OOTB Linux disk probe & sensors. There are no errors in logs.


Appreciate if anyone can put resolutions if any.



Regards,


Sudhir


Sudhir:



Sometimes the sensor will just ignore things it can not correctly parse in the info returned via the probe output.


I sprinkle gs server log entries in the sensor code to see where the sensor is breaking down.


(You would be surprised at some of the stuff it may ignore - take a look at the OOTB Unix file systems sensor. It ignores remote FS entries that come back from the df cmd).