To report the correct license count, the user who executes tl-show-licenses needs to have read access to licenses files. If a user does not have read access to license files, the failure is silent and the result is incorrect count of licenses for the system.
It should now be clear to the user when tl-show-licenses isn't able to show the correct amount of licenses because of permission errors.
Running tl-show-licenses as a non-privileged user with ThinLinc 4.9.0: > $ /opt/thinlinc/sbin/tl-show-licenses > License summary: 5 concurrent users. Hard limit of 6 concurrent users. > ThinLinc version: 4.9.0 Running tl-show-licenses as a non-privileged user with the nightly build: > $ /opt/thinlinc/sbin/tl-show-licenses > 2018-09-25 12:13:07 ERROR vsmserver.license: Insufficient permissions to read license files from /opt/thinlinc/etc/licenses > License summary: 5 concurrent users. Hard limit of 6 concurrent users. > ThinLinc version: 4.9.0post Looks good.
*** Bug 4389 has been marked as a duplicate of this bug. ***