Skip to content

[Feature Request]: Known issues - permissions #2319

@dzhygun

Description

@dzhygun

Feature Description

Hi, Publii!

I have encountered a permissions issue.
I suggest to update "Known issues" section in the Wiki.

Known Issue: Electron SUID Sandbox Error on Linux

When running npm run build on Linux, you may encounter the following fatal error:

[14928:0915/132205.583854:FATAL:setuid_sandbox_host.cc(158)] 
The SUID sandbox helper binary was found, but is not configured correctly. 
Rather than run without sandboxing I'm aborting now. 
You need to make sure that /home/.../node_modules/electron/dist/chrome-sandbox 
is owned by root and has mode 4755.

This happens because Electron’s SUID sandbox helper is not set up correctly.

Solution:
From your project root, fix permissions and ownership:

sudo chown root:root node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 node_modules/electron/dist/chrome-sandbox

After this, re-run npm run build — the error should be resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions