Date: Tue, 19 Nov 2019 08:02:50 -0500 From: mike tancsa <mike@sentex.net> To: Ronald Klop <ronald-lists@klop.ws>, freebsd-stable@freebsd.org Subject: Re: jexec as user? Message-ID: <a572c2ec-52b6-0999-9106-75051cfc9821@sentex.net> In-Reply-To: <1237616943.9.1574163726832@localhost> References: <1237616943.9.1574163726832@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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@cacticonsole:/ % id uid=1005(testuser) gid=1005(testuser) groups=1005(testuser) testuser@cacticonsole:/ % ---Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a572c2ec-52b6-0999-9106-75051cfc9821>