Skip to content
QtWS25 Last Chance
  • 0 Votes
    2 Posts
    484 Views
    jsulmJ
    @CristianoNarcisiVidex said in Run test as superuser inside QtCreator: because of my OS is Ubuntu, i need the super user permission for opening that port That's wrong. You simply have to add your user to the group which has access to the device file of your serial port. See https://askubuntu.com/questions/58119/changing-permissions-on-serial-port "The issue with the permissions for /dev/ttyACM0 can be permanantly solved by adding yourself to the dialout group. You can do this with: sudo usermod -a -G dialout $USER Logout and then log back in for the group changes to take effect. "
  • 0 Votes
    3 Posts
    417 Views
    C
    I suspect that a combination of CAP_IPC_LOCK and/or CAP_IPC_OWNER capabilities applied to the executable will probably help. See setcap man page.