Operating system - Ubuntu Linux 22.04.2
Webmin version - 2.021
Usermin version - 1.861
Virtualmin version - 7.7
Perl version - 5.034000
Path to Perl - /usr/bin/perl
Python version - 3.10.6
Path to Python - /bin/python3
BIND version - 9.18
Postfix version - 3.6.4
Mail injection command - /usr/lib/sendmail -t
Apache version - 2.4.52
PHP versions - 8.1.2
Logrotate version - 3.19.0
MariaDB version - 10.6.12
ProFTPD version - 1.37
SpamAssassin version - 3.4.6
ClamAV version - 0.103.8
Hello,
I have recently set up a brand new server as shown above with all the software versions.
I am trying to set up some cron jobs for users to automate some tasks, it requires php cli, and when I went to test the php via an SSH terminal as one of the jailed users, on testing, I am only getting “Bash: php: command not found”
While I can copy the program there, I was wondering if there is a built-in easier way to handle this so that when the php program gets updated, it will get updated in the jail also.
You need to add any binaries to the jails that need to use those binaries. There is a Jailkit module for editing jail configuration, or you can modify the config files manually. You can use the jk_cp command to copy programs into an existing jail.
Thank you so much for the reply
When using the search from the Webmin tab, I searched for:
jail and chroot, the only result is Fail2Ban intrusion detection.
I don’t seem to be able to edit my post, when trying to install the webmin-jailkit it says:
"Package webmin-jailkit is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘webmin-jailkit’ has no installation candidate"
Agh. That’s a bug in my build scripts. I can’t believe nobody has noticed.
I’ll fix it, but not in the next few hours. You could install that package, but it’ll be a bit weird (it’ll work, but when the new package arrives and you install it you could have two Jailkit entries in the menu, though it’d be fine to remove the weirdly named one once that happens). It’s just on a different path than it’s supposed to be because the module is in a git repo named webmin-jailkit and my build script doesn’t handle renaming it. The module is stateless other than its own configuration, it’s just a GUI on top of the jailkit config files.
I will not install it right now, I understand it will not be right away. If you could reply to this post when you do get it fixed I would greatly appreciate it.