BUG: jail=2

factor

Verified User
Joined
Jul 22, 2017
Messages
3,769
Location
USA
From my system. Never set this as its not in my process.
da c | grep jail
jail=2

Something updated the default from 0

Must be this
Code:
    #enable jail=2 server-wide
    if [ -s ${DACONF_FILE} ]; then
        if ! grep -q -m1 'jail=0' ${DACONF_FILE}; then
            setVal jail 2 ${DACONF_TEMPLATE_FILE}
            setVal jail 2 ${DACONF_FILE}
            doRestartDA
        fi
    fi

the template is changed
cat directadmin.conf
#DirectAdmin config file
#For full listing of set variables, run: /usr/local/directadmin/directadmin c
#For information on a given variable, search it in the versions system: https://directadmin.com/versions.php
#More information on setting values to the directadmin.conf: https://help.directadmin.com/item.php?id=641
.......
.......
nginx_proxy=0
litespeed=0
openlitespeed=0
frontpage_on=0
apache_ver=2.0
jail=2
pureftp=0

from https://docs.directadmin.com/directadmin/general-usage/all-directadmin-conf-values#jail

jail​

jail=0

Use bubblewrap to jail users (cronjobs, shell and PHP-FastCGI). Use CustomBuild to install bubblewrap, it sets the DirectAdmin value automatically.

ValueComment
0jail disabled completely
1jail is enabled by default, but can be personally disabled per package, reseller.conf or user.conf
2jail is enabled forcefully for all

Please check it to making a correction to the system. So we can avoid this issue from happening.

@smtalk @DirectAdmin Support

Sorry I put it here it needs to be in CB2 I suppose.
 
Last edited:
Thank you for the report, it should have been set to 1. Fixed!
 
@smtalk are there any steps if i actualy want to enable this? (Apart from installing bwrap and jailshell). And does it have any caveats? (i read something with exim a while back)
 
@smtalk are there any steps if i actualy want to enable this? (Apart from installing bwrap and jailshell). And does it have any caveats? (i read something with exim a while back)
Exim should work just fine. There should be a “Jail” checkbox when modifying user or user package.
 
Now all you need to do is add a remove routine for brwrap, jailshell and redis
 
Back
Top