I have a question of understanding. If I jexec a jail from my host I'm logged in as root. Is there a command (equal to sudo) to run a command as other user (e.g. www)? At the moment I'm changing the user first (su www). Is there another way?
Thanks. I never used jexec() like this before . For executing a command from outside the jail as user www I now use: sudo jexec -U www jailname command
From inside the jail (similar to sudo) I use: su -m www -c 'command'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.