N
N
NorroeN2018-02-21 18:58:07
linux
NorroeN, 2018-02-21 18:58:07

How to find out the access group for working with system components on linux?

Good afternoon! For example, to work with com ports, you can do ll /dev/ttyACM0 and the dialout group will be specified. If the user is in this group, then he does not need to execute the script with admin rights. I have a problem with raw sockets in node.js. I don't want to do the whole process with sudo for obvious reasons. But when using such libs as net-ping , there is a problem with access. How to find the access group correctly? Or perhaps do something differently?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2018-02-21
@Wexter

If your port is less than 1024, then nothing, only root can occupy these ports, the rest work without root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question