[Bug 245236] [suggestion] change the default shell for jexec

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 1 13:45:52 UTC 2020


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

            Bug ID: 245236
           Summary: [suggestion] change the default shell for jexec
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: please at forget.me.uk

I want to have different shells in different jails. It looks like there is a
bug that prevents that. Unfortunately, this does not work:

#jexec 1 /usr/local/bin/bash
#echo $SHELL
/bin/csh

https://github.com/freebsd/freebsd/blob/master/usr.sbin/jexec/jexec.c#L132

For example, Midnight Commander has a build-in shell that relay on variable
$SHELL. This means when you start mc (inside a jail) and then access shell it
would be default one ( probably /bin/csh not one that was defined )

based on:
https://pushpanel.io/2020/freebsd-12-1-change-the-default-shell-for-jexec/

Would you able to make relevant changes to set it up properly?

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


More information about the freebsd-bugs mailing list