Webmin 1.890升级后触发Require ACL错误,请求修复方法
Hey there, this error pops up when Webmin can’t access or load its core ACL (Access Control List) module files after an upgrade—even if you didn’t touch any configs, upgrades sometimes mess up file permissions, leave missing files, or leave stale cached data behind. Here’s how to fix it step by step:
Check if the acl-lib.pl file exists and has correct permissions
First, log into your server’s terminal. Run this command to verify the file is present (adjust the path if your Webmin is installed in a different location—common paths are/usr/share/webmin/acl/acl-lib.plfor Debian/Ubuntu or/usr/libexec/webmin/acl/acl-lib.plfor RHEL/CentOS):ls -l /usr/share/webmin/acl/acl-lib.plIf the file doesn’t exist, skip to the module reinstall step below. If it does exist, fix its permissions so Webmin can read and execute it:
chmod 0755 /usr/share/webmin/acl/acl-lib.pl chown root:root /usr/share/webmin/acl/acl-lib.plReinstall the Webmin ACL module
Missing or corrupted module files are the most common culprit here. Use your system’s package manager to reinstall the ACL module:- For Debian/Ubuntu systems:
apt-get install --reinstall webmin-acl - For RHEL/CentOS systems:
yum reinstall webmin-acl
If you installed Webmin from source, download the latest Webmin tarball, extract it, and copy the
acldirectory into your Webmin installation path (e.g.,/usr/share/webmin/).- For Debian/Ubuntu systems:
Clear Webmin's cached files
Webmin caches compiled Perl scripts, and old cache files often cause conflicts after an upgrade. Delete the cache and restart Webmin:rm -rf /var/webmin/miniserv.cache systemctl restart webmin(Use
service webmin restartif your system doesn’t use systemd.)Verify Perl module dependencies
Rarely, this error can stem from missing Perl modules that the ACL module relies on. Run Webmin’s built-in dependency checker to spot gaps:/usr/share/webmin/check-perl.plFollow the output to install any missing modules (using
cpanor your system’s package manager).Last resort: Reinstall Webmin entirely
If nothing else works, back up your Webmin configs first (copy the/etc/webmindirectory to a safe place), then uninstall and reinstall Webmin:# Debian/Ubuntu apt-get remove --purge webmin apt-get install webmin # RHEL/CentOS yum remove webmin yum install webminAfter reinstalling, restore your backed-up
/etc/webmindirectory and restart Webmin.
内容的提问来源于stack exchange,提问作者Mariyo

