E
E
Evgeny Vorobyov2021-01-12 12:31:55
SSH
Evgeny Vorobyov, 2021-01-12 12:31:55

What is running on the system in an ssh session?

Good afternoon.
There is a Network Inventory Advisor program for Windows. Collects information from client computers on the software and hardware installed in them. Essentially an inventory.

This program works with hosts on Linux, but collects information via ssh.
The problem is that if you give it the accounts of ordinary users, it will not collect all the data. There is no data on RAM, processor, motherboard (at least).
If the system has sudo and the user who is given this program has the rights to it, everything is fine. If there is no sudo (package) in the system, then the program does not collect those data even from the root.
The question is... how can you find out what a program is doing in an ssh session? How does it read hardware data?
Purpose: to collect data under the account of a regular user of this program. So that the privileges of the superuser are not "anyone".

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Dmitriev, 2021-01-12
@astrave

Since it is apparently not an option to ask the developers of the program in technical support, I would do so.
1. I would take a list of programs, for example from here https://www.binarytides.com/linux-commands-hardwar...
2. I would create a separate user on one machine.
3. Would add the rights to sudo for this user for one program, would make a report and see if there are any changes in it. If there is, I would add the program to the list; if not, I would delete it from sudoers.
In the end, I would create users by script on all machines and give them rights to sudo only certain programs.

A
AVKor, 2021-01-12
@AVKor

The problem is that if you give it the accounts of ordinary users, it will not collect all the data. There is no data on RAM, processor, motherboard (at least).

$ cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 60
model name	: Intel(R) Core(TM) i3-4340 CPU @ 3.60GHz
stepping	: 3
microcode	: 0x28
cpu MHz		: 2290.872
[...]
$ cat /proc/meminfo 
MemTotal:       16282772 kB
[...]
и т.д.

From a normal user. I do not know why your program cannot take information there. Curves did, perhaps. Or you are doing something wrong.

M
Maxim Korneev, 2021-01-12
@MaxLK

I understood correctly - the developer refused to answer your question, there is no comprehensive documentation in the set, it is impossible to create a user with the necessary rights only for this software on all hosts. so you chose the most crooked of the possible options?
how does it read? Yes, it reads from / dev, how else? how did it help you?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question