Skip to content

Use non‐root user

seriousm4x edited this page Sep 19, 2023 · 3 revisions

Docker

  1. Stop the container if it's running
  2. Add user: 1000:1000 to your docker-compose.yml. Replace 1000 with your $UID:$GID
  3. Change folder permissions for the docker volume (create data folder if it doesn't exist)
chown -R 1000:1000 ./data
  1. Start the container

Binary

Grant CAT_NET_RAW to the binary (Only needs to be done once):

sudo setcap cap_net_raw=+ep /path/to/upsnap

After that, you can just run the binary as normal user.

Clone this wiki locally