Sudo not working

sudo node example/example-without-dotenv.mjs
sudo: The “no new privileges” flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

1 Like

Welcome to the forums!

Unfortunately, you can’t use root in the shell.

7 Likes

You can’t use root in the Replit shell. Run stuff normally, and if it does need root privileges, maybe try using @jscraft’s Debian template to get a root area as an eval server.

5 Likes

You cannot use sudo on replit. However, you could try using this template:
https://replit.com/@jscraft/ReplRoot?v=1
It sets up a VM in the Replit container, giving you access to sudo on that VM.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.