Skip to content

Cannot run sfw as a normal user due to auto-update mechanism #12

@fmarier

Description

@fmarier

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions