Submitted by jiteshsg on Sun, 10/11/2020 - 03:01 Pro Licensee
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
Submitted by JamieCameron on Sun, 10/11/2020 - 15:27 Comment #1
This is a bug in the current release of Virtualmin - it will be fixed in the upcoming 6.13 release.
Submitted by jiteshsg on Mon, 10/12/2020 - 08:36 Pro Licensee Comment #2
Thanks. Done manually with lots of troubleshooting. It would be good if this works through the admin panel. Anyway, closing this one. Thanks.
Submitted by jiteshsg on Mon, 10/12/2020 - 08:38 Pro Licensee Comment #3
Fix is coming in upcoming release.
Submitted by heikkiwaan on Mon, 11/16/2020 - 09:41 Comment #4
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...
The quick fix for this is to open
/etc/jailkit/jk_init.ini
and removeincludesections = netbasics
on line 116.There is a duplicate entry for
includesections
under [openvpn] section, which is causing an issue.Submitted by heikkiwaan on Mon, 11/16/2020 - 14:05 Comment #6
Thank you. It works!!! Great job.
Submitted by IssueBot on Mon, 11/30/2020 - 14:07 Comment #7
Automatically closed - issue fixed for 2 weeks with no activity.