Perl permissions to close

Why is by default perl closed to root? I have other users that would like to use perl and they cannot. What is the main reason for this? This is by normal yum install.

/usr/local/share $ ls -lha
total 4.0K
drwxr-xr-x. 7 root root 73 Apr 22 2024 .
drwxr-xr-x. 15 root root 178 Apr 22 2024 …
drwxr-xr-x. 2 root root 28 Oct 24 09:48 applications
drwxr-xr-x. 2 root root 6 May 16 2022 info
drwxrwxr-x. 3 kong kong 17 Apr 22 2024 lua
drwxr-xr-x. 21 root root 4.0K Jun 27 2023 man
drwx------. 3 root root 18 Apr 22 2024 perl5

Thanks in advance

Rocky packages for perl install in /usr/share/perl5 - /usr/local is usually where you install stuff that you didn’t install from the Rocky repositories - therefore the permissions are wrong by whoever unpacked the tar/zip on your system or the rpm’s you manually downloaded from elsewhere or some third-party repository. If it is third-party rpm’s or repository then you need to contact whoever maintains it to get it fixed.

The ‘yum’ is now an alias for ‘dnf’.
The “normal” would mean “from Rocky’s package repositories”.

No Rocky’s package provides /usr/local/share/perl5, so it is not from “normal” package, or not from a package at all.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.