From owner-freebsd-bugs@FreeBSD.ORG Sat Jul 29 09:40:18 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 624AC16A4DD for ; Sat, 29 Jul 2006 09:40:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44F1743D58 for ; Sat, 29 Jul 2006 09:40:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6T9eE8h081541 for ; Sat, 29 Jul 2006 09:40:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6T9eEuV081540; Sat, 29 Jul 2006 09:40:14 GMT (envelope-from gnats) Resent-Date: Sat, 29 Jul 2006 09:40:14 GMT Resent-Message-Id: <200607290940.k6T9eEuV081540@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jesper Wallin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D93E916A4DD for ; Sat, 29 Jul 2006 09:33:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id A335143D45 for ; Sat, 29 Jul 2006 09:33:59 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6T9XxCs046515 for ; Sat, 29 Jul 2006 09:33:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k6T9Xwx0046509; Sat, 29 Jul 2006 09:33:58 GMT (envelope-from nobody) Message-Id: <200607290933.k6T9Xwx0046509@www.freebsd.org> Date: Sat, 29 Jul 2006 09:33:58 GMT From: Jesper Wallin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/101015: jexec lacks a -U flag. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jul 2006 09:40:18 -0000 >Number: 101015 >Category: misc >Synopsis: jexec lacks a -U flag. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jul 29 09:40:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jesper Wallin >Release: FreeBSD 6.1-RELEASE-p3 >Organization: >Environment: FreeBSD omega.ifconfig.se 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Sat Jul 29 08:06:51 CEST 2006 root@omega.ifconfig.se:/usr/obj/usr/src/sys/omega i386 >Description: If I start a jail, I can specify which user the process inside the jail should be runned by. If I later on want to start another process (or the same) by another user inside the jail, I will have to add the same user on the host system. For instance, if I want to run a process as the user www inside the jail, I won't be able to start another process on-the-fly using jexec, as the user www, as the user www on the host system has no home or shell. >How-To-Repeat: Not repeatable as it's a 'wish to be added'-problem and not a bug. >Fix: My suggestion would be to add a -U (and -u) flag to the jexec command. On another note, how come there's no start-up configuration for jexec? As the system is right now, it's impossible to start one jail, running 3 different processes inside the jail as 3 different users by only using /etc/rc.conf. >Release-Note: >Audit-Trail: >Unformatted: