There is a program running in a script that creates raw sockets, is it possible to specify in the system to allow the creation of raw sockets to the user? If not, then how to run this program from the superuser in a script run from a simple user.

  • one
    If the program doesn’t do anything potentially malicious, make the owner of the root program (chown root program) and put a suid bit on it chmod u+s программа and then regardless of who launched it, it will be executed with root privileges - Mike
  • Thank you, but the fact is that this is a test program that is compiled each time and runs in the automatic build system - Anton
  • then correct the scripts that run it, that would run through sudo. In / etc / sudoers specify what to run this program without asking for root password - Mike
  • perhaps the advice will help change and check suid in your program. - approximatenumber
  • one
    There are several variants of “resolving something”, but, in my opinion, only that suggested by @Mike is suitable for the situation described. Mike, please make your offer a reply. - aleksandr barakin

0