Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2006 09:33:58 GMT
From:      Jesper Wallin <jesper@ifconfig.se>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/101015: jexec lacks a -U flag.
Message-ID:  <200607290933.k6T9Xwx0046509@www.freebsd.org>
Resent-Message-ID: <200607290940.k6T9eEuV081540@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



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