From nobody@FreeBSD.org  Sat Jul 29 09:33:59 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D93E916A4DD
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <jesper@ifconfig.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: jexec lacks a -U flag.
X-Send-Pr-Version: www-2.3

>Number:         101015
>Category:       misc
>Synopsis:       jexec lacks a -U flag.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 29 09:40:12 GMT 2006
>Closed-Date:    Sat Jul 29 11:11:45 GMT 2006
>Last-Modified:  Sat Jul 29 11:11:45 GMT 2006
>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:

From: Maxim Konovalov <maxim@macomnet.ru>
To: Jesper Wallin <jesper@ifconfig.se>
Cc: bug-followup@freebsd.org
Subject: Re: misc/101015: jexec lacks a -U flag.
Date: Sat, 29 Jul 2006 13:47:55 +0400 (MSD)

 Hi Jesper,
 
 [...]
 > >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.
 
 jexec(8) does have -u|U flags in RELENG_6.
 
 -- 
 Maxim Konovalov
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Sat Jul 29 11:10:36 UTC 2006 
State-Changed-Why:  
This functionality is present in HEAD, RELENG_6 and RELENG_5. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101015 
>Unformatted:
