Failed to save owner limits : Failed to enable chroot jail : Chroot jail is not enabled for this domain

Hi, I am trying to restrict user to their home directories on SFTP and Webmin File Manager.

For this I went to Virtualmin -> Administration Options -> Edit Owner Limits -> Other Restrictions -> Chroot Jail Domain Unix User -> Yes (from No) -> SAVE

But this is failing with this error, Failed to save owner limits : Failed to enable chroot jail : Chroot jail is not enabled for this domain

Can you kindly help me with this issue? Based on the forum discussions I have seen it was supposed to be as simple as just going there and saving the settings. But for me it is not working.

Appreciate help with this.

Status: 
Closed (fixed)
Virtualmin version: 
6.12
Webmin version: 
1.955

Comments

This is a bug in the current release of Virtualmin - it will be fixed in the upcoming 6.13 release.

Thanks. Done manually with lots of troubleshooting. It would be good if this works through the admin panel. Anyway, closing this one. Thanks.

Fix is coming in upcoming release.

I have the mentioned 6.13. I just upgraded it, and i have the error also.

Failed to save owner limits : Failed to enable chroot jail : Failed to initialize jail : ERROR: cannot lstat() /home/chroot/1604084349235821 Traceback (most recent call last): File "/sbin/jk_init", line 261, in main() File "/sbin/jk_init", line 258, in main activateConfig(config, jail, args) File "/sbin/jk_init", line 164, in activateConfig cfg.read([config['file']]) File "/usr/lib64/python3.6/configparser.py", line 697, in read self._read(fp, filename) File "/usr/lib64/python3.6/configparser.py", line 1092, in _read fpname, lineno) configparser.DuplicateOptionError: While reading from '/etc/jailkit/jk_init.ini' [line 118]: option 'includesections' in section 'openvpn' already exists

It writes something about openvpn which i do not need at all...

Ilia's picture
Submitted by Ilia on Mon, 11/16/2020 - 13:46

DuplicateOptionError: While reading from '/etc/jailkit/jk_init.ini' [line 118]: option 'includesections' in section 'openvpn' already exists

The quick fix for this is to open /etc/jailkit/jk_init.ini and remove includesections = netbasics on line 116.

There is a duplicate entry for includesections under [openvpn] section, which is causing an issue.

Thank you. It works!!! Great job.

Status: Fixed ยป Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.