While discovery are there any challenges specific to Linux Machines?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2024 10:12 AM
Client saying that she is having issues with Linux machines. But didn't mentioned what kind of issues are those. But when it comes to the discovery process, are there any specific issues that we need to address for Linux? What are the common challenges for Linux machines? I heard that some kind of commands won't execute properly, in this case what is the resolution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2024 12:55 PM - edited ‎08-01-2024 12:56 PM
Hi Mihir,
Below are the requirement related to UNIX/ LINUX Discovery Scan:
1- SSH Username and password or SSH Private key
2- Root / Sudo privilege's must be granted: If Discovery has root credentials to any unix or linux system, then no further configuration is required or Give other credentials for discovery, but grant the user in those credentials the right to execute certain commands with root privileges, using sudo.
UserName ALL=(root) NOPASSWD:/usr/sbin/dmidecode,/usr/sbin/lsof,/sbin/ifconfig
Sometimes cd (change directory) cat (concatenate, which means read the file contents) and ls (list current directory or a different directory) is dependent on the permissions of the directory its looking into. If the User account does not have permissions to it, sudo should suffice before the command to get the information needed.
We faced problem with patterns- docker, postgres and application level discovery, the issue was that our account had sudo privileges the cd command was not set to be passwordless. So we added /usr/bin/cd to the visudo file which then allowed it through passwordless. After which, the patterns were executed with no errors.
If you believe the solution provided has adequately addressed your query, could you please **mark it as 'Helpful'** and **'Accept it as a Solution'**? This will help other community members who might have the same question find the answer more easily.
Thank you for your consideration.
Selva Arun