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 .../node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755

So, i have an issue when i try to run the electron application running npm run dev script, at first logs seems fine but at the end i`m getting message that

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/opamusora/Work/showtex/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.
[1] /home/opamusora/Work/showtex/node_modules/electron/dist/electron exited with signal SIGTRAP
[1] wait-on http://localhost:3000 && electron --no-sandbox. exited with code 1
[0] BROWSER=none npm start exited with code SIGINTn Completed in 5ms

so i did some actions trying to fix that:

sudo chown root:root /home/opamusora/Work/showtex/node_modules/electron/dist/chrome-sandbox

and

sudo chmod 4755 /home/opamusora/Work/showtex/node_modules/electron/dist/chrome-sandbox

and after running theese command i still get this error and i cant run my electron app

and to be sure, here is rights of that file:

opamusora@fedora:~$ ls -l /home/opamusora/Work/showtex/node_modules/electron/dist/chrome-sandbox
-rwsr-xr-x. 1 root root 50848 кві  8 16:30 /home/opamusora/Work/showtex/node_modules/electron/dist/chrome-sandbox

Just in case, im new to linux so please dont be so rude, thanks!

im using node 16.20.2

You probably need to add the -R to your chmod/chown commands there but I’m a little concerned about why it needs setuid as root for a regular user process :grimacing: .