I installed sfw as root (sudo npm -g i sfw
) and then ran it once as root.
Everything was fine for about a day (I could run it as my normal user), but now it doesn't work anymore because it can't update itself (it cannot write to /usr/lib/node_modules/sfw/
):
$ sfw npm --help
[sfw] Failed to prepare firewall binary: EACCES: permission denied, open '/usr/lib/node_modules/sfw/.sfw-cache/next-check'
$
Maybe it should be using ~/.cache/sfw/
instead of /usr/lib/node_modules/sfw/.sfw-cache/
? It would also mean that it can work on systems where /usr/
is mounted read-only.