I changed with
webmin passwd root
[root@machine1~]# webmin passwd root
Can’t locate File/Basename.pm in @INC (you may need to install the File::Basename module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/bin/webmin line 13.
BEGIN failed–compilation aborted at /usr/bin/webmin line 13.
That was the error before I installed perl-File-Basename, after it worked correctly so far… but I am wondering if Rocky 9.x is supported/tested in any ways.
You were missing a dependency for one, almost entirely unnecessary, feature (you should not use Webmin passwords, generally speaking, you should use system passwords). That said, there probably are other places File::Basename is needed, so it’s good to install it. But, you do not need to use the webmin passwd command. Webmin defaults to using system users unless and until you tell it to do otherwise by explicitly setting a separate password. I recommend you use passwd (the system command, not the webmin subcommand).
The package doesn’t depend on it because it’s different across various distributions that use RPM (RHEL broke their Perl a few years ago, by breaking out a bunch of core modules into separate packages) and many RPM-based distros do not have this package because they don’t have a broken Perl package.
They’re all the same. All distros with RPM have the same package.
You’re making way too big of a deal out of this. It was a missing dependency for a command you probably shouldn’t even use. (But, it’s also good to install the missing dependency, since the webmin command probably uses it elsewhere, since I wrote it and I use standard modules whenever possible, while Jamie uses his own implementations of most of the core modules.)
Thanks Joe. I am not making a big deal really, I am not a native English speaker and maybe it sounded bad how I asked, but this was not my intention at all, just wanted to know if its supported or not. I am sorry it sounded like that to you.