When I type in my console "runuser", I am getting "command not found". I though this command was pretty standard, but I cannot find it on my system.
I am on the root user but I do not have the password of the other user.
When I type in my console "runuser", I am getting "command not found". I though this command was pretty standard, but I cannot find it on my system.
I am on the root user but I do not have the password of the other user.
On Ubuntu you have
su
andsudo
for this sort of thing:Changes to user
username
, as if that user had logged in.Run a single command as user
username
.From your comment on the other answer:
This happens because 'otheruser' hasn't got a shell (like bash). It's probably something like /bin/false. If you want a shell as 'otheruser', use this instead:
It is in the util-linux package, so if you want it, install that package.