Solved Jail: run program as other user then root

pantos

New Member


Messages: 6

#1
Hello,

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!
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 6,424
Messages: 27,742

#2
Another way is to use the -U option:
Code:
     -U username
             The user name from jailed environment as whom the command should
             run.
From jexec(8).
 
Top