Downloaded open JDK tar.gz file from https://jdk.java.net/15/. When I expand this file with command tar -xf openjdk-15.0.2_linux-x64_bin.tar.gz on one box permissions look like
drwxr-xr-x 2 me me 4.0K Feb 17 15:57 bin
On the other hand when same file, copied to other box and expanded with same command
drwxr-x--- 2 me me 4.0K Feb 17 16:37 bin
Same applies to other files in bin directory - no one except myself who expanded the file has execute permissions. As a result I am not able to execute any of the java commands as a different user.
Both machines are Ubuntu 20.04. What could be causing the difference?