Forrest logo
back to the runuser tool

runuser:tldr:fc57f

runuser: Specify a shell for running instead of the default shell (also works for login).
$ runuser ${user} -s ${-bin-sh}
try on your machine

The runuser command is used to run a command as a specified user. In this case, ${user} is a placeholder for the name of the user.

The -s option specifies the shell to be used for running the command. ${-bin-sh} is a placeholder for the path to the preferred shell, such as /bin/sh. The -bin-sh is likely a typo, and it should be ${bin_sh} or ${/bin/sh} instead.

So, the command runuser ${user} -s ${-bin-sh} would run a command as the specified user, using the specified shell. However, since there is a typo in the placeholder for the shell path, it would result in an error.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the runuser tool