Skip to content

Instantly share code, notes, and snippets.

@garywill
Created January 27, 2025 13:12
Show Gist options
  • Save garywill/09a878e2e5c4d5f662dc1cdd52d08d97 to your computer and use it in GitHub Desktop.
Save garywill/09a878e2e5c4d5f662dc1cdd52d08d97 to your computer and use it in GitHub Desktop.

Revisions

  1. garywill created this gist Jan 27, 2025.
    3 changes: 3 additions & 0 deletions netbindpri
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    sudo capsh --caps='cap_net_bind_service+eip cap_setpcap,cap_setuid,cap_setgid+ep' \
    --keep=1 --user=non-root-user --addamb=cap_net_bind_service -- \
    -c '/path/to/your/command'