Run Command as Non-Root User

You can run commands remotely on your edge device as a root or non-root user. This page shows how to run as non-root.

When you run a Bash command on the edge device using the Command Runner or the Update Flow tool, by default JFrog Connect runs the command as the Linux root user on the device. If you do not want the command to run as root user, you can change the user.

To change to a non-root user on edge device, do the following:

  1. Use the following command:

runuser -l <user_name> -c <cmd>
  1. Change <user_name> to the non-root user name, change <cmd> to the command you want to run, and run the command.

What’s Next?

Learn how to use Run Command action blocks in your update flows.

Last updated