[Bug 207587] jexec defaults to using "-u User"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 29 11:03:34 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207587

            Bug ID: 207587
           Summary: jexec defaults to using "-u User"
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Documentation
          Assignee: freebsd-doc at FreeBSD.org
          Reporter: dewayne at heuristicsystems.com.au

It would avoid confusion if the "man 8 jexec" clearly stated that the base
host's environment was used in the jailed system,

For example: The intent of what is "desired" in the jail is demonstrated in the
path.

# jexec -u root b2 printenv |grep PATH
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
# jexec -U root b2 printenv | grep PATH
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/sbin:/bin:/usr/sbin

Suggestion:
Change
     -u username
             The user name from host environment as whom the command should
             run.
to
     -u username
             The user name from host environment as whom the command should
             run.  This is the default.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-doc mailing list