Date: Tue, 19 Nov 2019 15:09:45 +0200 From: Christos Chatzaras <chris@cretaforce.gr> To: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: jexec as user? Message-ID: <F75AA78E-EC55-49F8-9CEA-AB6C6F0BD742@cretaforce.gr> In-Reply-To: <a572c2ec-52b6-0999-9106-75051cfc9821@sentex.net> References: <1237616943.9.1574163726832@localhost> <a572c2ec-52b6-0999-9106-75051cfc9821@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 19 Nov 2019, at 15:02, mike tancsa <mike@sentex.net> wrote: >=20 > On 11/19/2019 6:42 AM, Ronald Klop wrote: >> Hi, >>=20 >> 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? >>=20 > On 11.3 at least, does not the built in functionality of jexec do what > you need ? >=20 > jexec [-l] [-u username | -U username] jail [command ...] >=20 > # jexec -U testuser 3 csh > testuser@cacticonsole:/ % id > uid=3D1005(testuser) gid=3D1005(testuser) groups=3D1005(testuser) > testuser@cacticonsole:/ % >=20 I think he wants to use jexec as a normal user from the main OS. If he wants to run jexec as root and login to jail as user then your = command works.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F75AA78E-EC55-49F8-9CEA-AB6C6F0BD742>