Hi, Is it possible to jexec into a jail as a regular user. Or to enable that somewhere? Or is the way to do such a thing to set up ssh in the jail? Regards, Ronald.
> Is it possible to jexec into a jail as a regular user. Or to enable that somewhere? > Or is the way to do such a thing to set up ssh in the jail?I was searching few months ago the same and I think it's not possible. Maybe you can do it using sudo.
On 11/19/2019 6:42 AM, Ronald Klop wrote:> Hi, > > Is it possible to jexec into a jail as a regular user. Or to enable > that somewhere? > Or is the way to do such a thing to set up ssh in the jail? >On 11.3 at least, does not the built in functionality of jexec do what you need ? jexec [-l] [-u username | -U username] jail [command ...] # jexec -U testuser 3 csh testuser at cacticonsole:/ % id uid=1005(testuser) gid=1005(testuser) groups=1005(testuser) testuser at cacticonsole:/ % ??? ---Mike