Commented

nirogu, to linux
@nirogu@vivaldi.net avatar

Run command as not-root

Hi everyone

At work, I have to run a command in an AWS instance. In that particular instance only exists the root user. The command should not be executed with root privileges (it executes mpirun, which is not recommended to run as sudo or the machine might break), so I was wondering if there is a way to block or disable the sudo privileges while the command is running. As mentioned, the only user existing there is root, so I suppose "sudo -u" is not an option.

Does anyone know how to do it? Thanks in advance!

@linux

ursakhiin,

It’s not that an Amazon instance can be a docker container. It was more that the behavior you are describing is extremely odd for a full Linux environment but normal for a docker container.

If you created the instance, it isn’t likely a container. But it also sounds like the base image might be poorly set up

elscallr,
@elscallr@lemmy.world avatar

You’ll thank yourself for it later. Things like this take a little longer up front but putting them off has a way of making you have to work around it again and again until, when you get around to correcting it, it takes far more time to undo the workarounds than it would’ve taken to correct it the first time.

Spending a few days with Hyprland made me realize how awesome Gnome is

Don’t get me wrong. Hyprland is great. I like it a lot. It looks fresh, it’s easy to configure and the keybindings are super easy to implement, but it’s also very barebones. Most of the functionality expected from a DE come from external software. Be it a top bar, an app launcher, a notification daemon or anything else....

If you love piracy you should consider voting/joining your local Pirate Party (pp-international.net)

From wikipedia: “Pirate Party is a label adopted by political parties around the world. Pirate parties support civil rights, direct democracy (including e-democracy) or alternatively participation in government, reform of copyright and patent laws to make them more flexible and open to encourage innovation and creativity, use...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #