5

Say I am logged in root, and some commands don't let me to run them in root. I tried to login different accounts, but I'm not able to do such a thing.

How can I execute such command (logged in root) without the root properties?

2 Answers2

10
su -c "command and args" username
Anthon
  • 79,293
4

sudo -u <user> -H <command>

nanny
  • 296