I am creating nodewebkit and webrtc based desktop application for video streaming. While creating, I am trying to use getusermedia API but getting the below error on my Linux box.
[15464:0224/125017:ERROR: browser_main_loop.cc(162)] Running without the SUID sandbox! See https://code.google.com/p/chro... for more information on developing with the sandbox on. ATTENTION: default value of option force_s3tc_enable overridden by environment.
With some help from google, I found out below details about suid.
SUID (Set owner User ID up on execution) is a special type of file permissions given to a file. Normally in Linux/Unix when a program runs, it inherits access permissions from the logged in user. SUID is defined as giving temporary permissions to a user to run a program/file with the permissions of the file owner rather that the user who runs it. In simple words users will get file owner’s permissions as well as owner UID and GID when executing a file/program/command
According to my understanding, node-webkit (nw.js) doesn't need a sandbox to run. Please correct me if I am wrong. I am running the same nw application on my Mac OS X Mavericks and it is running flawlessly. I am really confused here because of the below questions.
Should I install a chromium sandbox before running nw on Linux (though I haven't found any such directives on nw.js github page)?
If not, what changes I need to make to my Ubuntu 12.04 LTS so that my application won't ask for a sandbox?
Try adding this to your package.json:
"chromium-args": "--disable-setuid-sandbox"
It will disable the sandbox on the instance of chromium that nw.js is using.
The message can be ignored as a sandbox is not used/needed in node-webkit.
There is actually an issue about this message in the bug tracker.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With