Submitted by yngens on Fri, 09/01/2017 - 18:05
The ls -l /usr/bin/python*
command is showing two different versions of Python are running:
lrwxrwxrwx. 1 root root 7 Jan 18 2017 /usr/bin/python -> python2
lrwxrwxrwx. 1 root root 9 Jan 18 2017 /usr/bin/python2 -> python2.7
-rwxr-xr-x. 1 root root 7136 Nov 6 2016 /usr/bin/python2.7
one of them apparently serving Fail2Ban:
/usr/bin/python2 -s /usr/bin/fail2ban-server -s /var/run/fail2ban/fail2ban.sock
I wonder do we really need two Pythons running on the same server and how this impacts server resources consumption? Can we get rid of Python2 if we do not need and disable Fail2Ban?
Generally, ti was big surprise to find Fail2Ban was imposed to all newer versions of *min. I understand that lot's of users love Fail2ban, however there are plenty of those who relay on other firewalls, so it would be just nice to make it available as additional module, but not to impose it to all users.
Status:
Closed (works as designed)
Comments
Submitted by JamieCameron on Fri, 09/01/2017 - 23:16 Comment #1
From those links, it looks like there is only one version - 2.7. Also, it doesn't really matter if there are multiple versions installed, as long as only one is running (unless you're really low on disk space).
Submitted by yngens on Fri, 09/01/2017 - 23:31 Comment #2
Hi James,
I see symlinks, however can you please confirm if it's ok if we remove both symlinks and move /usr/bin/python2.7 to /usr/bin/python?
Can you please also elaborate on imposing Fail2ban? Couldn't it be just offered as additional module for those who want it? Why it is enabled by default?
Submitted by JamieCameron on Fri, 09/01/2017 - 23:33 Comment #3
I wouldn't recommend removing any of those links - some scripts may depend on them.
You don't need to run fail2ban if you don't want to - it can be shut down in Webmin.
Submitted by andreychek on Fri, 09/01/2017 - 23:37 Comment #4
You're not actually seeing a bug there though -- if you have additional questions regarding that, as it appears that you're using Virtualmin GPL you'd want to use the Forums for discussion on the features included with Virtualmin.
Submitted by yngens on Sat, 09/02/2017 - 04:13 Comment #5
Fair enough.
As for using the issues, not forums, I usually report bugs, fixing which is in the best interests of all.