Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2019 12:42:06 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        freebsd-stable@freebsd.org
Subject:   jexec as user?
Message-ID:  <1237616943.9.1574163726832@localhost>

next in thread | raw e-mail | index | archive | help
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.
From owner-freebsd-stable@freebsd.org  Tue Nov 19 12:42:22 2019
Return-Path: <owner-freebsd-stable@freebsd.org>
Delivered-To: freebsd-stable@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5B4511B16FD
 for <freebsd-stable@mailman.nyi.freebsd.org>;
 Tue, 19 Nov 2019 12:42:22 +0000 (UTC)
 (envelope-from chris@cretaforce.gr)
Received: from relay2.cretaforce.gr (relay2.cretaforce.gr [195.201.253.149])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 47HQSr6kNpz4R5N
 for <freebsd-stable@freebsd.org>; Tue, 19 Nov 2019 12:42:20 +0000 (UTC)
 (envelope-from chris@cretaforce.gr)
Received: from server1.cretaforce.gr (server1.cretaforce.gr [138.201.248.69])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
 bits))
 (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK))
 by smtp2.cretaforce.gr (Postfix) with ESMTPS id 3AAA31F50D
 for <freebsd-stable@freebsd.org>; Tue, 19 Nov 2019 14:42:16 +0200 (EET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cretaforce.gr;
 s=cretaforce; t=1574167336;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=Orq8UhSJnCMq0a+Tt3FpCfte2oVopJbp9XxegI3j+2o=;
 b=ZkqJ6sXgI0F6PtigNlt/GSo7KLDZDtHr0sCwvPVFdhfkLVbcje2tuxwJjNybDXgkLTK2BD
 4WWZpHND6UQ29CMuBaKVvS06sk7ZncsI/5KoGLq7VSavHPRDM33ER4VzaKfGdZyZthkHKT
 CdO9DLDR3nznH9GzS1nwCWfMqrgZIBY=
Received: from christoss-air.fritz.box (ppp-94-64-150-254.home.otenet.gr
 [94.64.150.254])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 (Authenticated sender: chris@cretaforce.gr)
 by server1.cretaforce.gr (Postfix) with ESMTPSA id 076C927335
 for <freebsd-stable@freebsd.org>; Tue, 19 Nov 2019 14:42:15 +0200 (EET)
Content-Type: text/plain;
	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\))
Subject: Re: jexec as user?
From: Christos Chatzaras <chris@cretaforce.gr>
X-Priority: 3 (Normal)
In-Reply-To: <1237616943.9.1574163726832@localhost>
Date: Tue, 19 Nov 2019 14:42:14 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <BA9C902F-533E-42F3-A7A2-9E5566174EF2@cretaforce.gr>
References: <1237616943.9.1574163726832@localhost>
To: freebsd-stable@freebsd.org
X-Mailer: Apple Mail (2.3601.0.10)
X-Rspamd-Queue-Id: 47HQSr6kNpz4R5N
X-Spamd-Bar: ---
Authentication-Results: mx1.freebsd.org;
 dkim=pass header.d=cretaforce.gr header.s=cretaforce header.b=ZkqJ6sXg;
 dmarc=none;
 spf=pass (mx1.freebsd.org: domain of chris@cretaforce.gr designates
 195.201.253.149 as permitted sender) smtp.mailfrom=chris@cretaforce.gr
X-Spamd-Result: default: False [-3.14 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[];
 R_SPF_ALLOW(-0.20)[+ip4:195.201.253.149]; MV_CASE(0.50)[];
 TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3];
 DKIM_TRACE(0.00)[cretaforce.gr:+]; HAS_X_PRIO_THREE(0.00)[3];
 RCVD_IN_DNSWL_LOW(-0.10)[149.253.201.195.list.dnswl.org : 127.0.5.1];
 MIME_TRACE(0.00)[0:+];
 IP_SCORE(-1.05)[ipnet: 195.201.0.0/16(-3.57), asn: 24940(-1.65), country:
 DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[];
 ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE];
 MID_RHS_MATCH_FROM(0.00)[];
 RECEIVED_SPAMHAUS_PBL(0.00)[254.150.64.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net
 : 127.0.0.10]; ARC_NA(0.00)[];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000,0];
 R_DKIM_ALLOW(-0.20)[cretaforce.gr:s=cretaforce];
 FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain];
 PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org];
 DMARC_NA(0.00)[cretaforce.gr]; RCPT_COUNT_ONE(0.00)[1];
 DWL_DNSWL_LOW(-1.00)[cretaforce.gr.dwl.dnswl.org : 127.0.5.1];
 SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_TLS_ALL(0.00)[]
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-stable>, 
 <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable/>;
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
 <mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Nov 2019 12:42:22 -0000


> 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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1237616943.9.1574163726832>