I've used VMware player for several years to run VMs on a both Linux and Windows machines. On Windows it generally works fine, but on Linux it's always had a lot of rough edges and the installation on Ubuntu-based distributions such as Linux Mint has been a complete fail for a long time now - so many people are indebted to Michael Kubecek and his vmware-host-modules fixes to actually make it work.

One thing that has bugged me for a long time is even after installing the player it still prompts for an admin login on launch. Curiously Player 12 on Mint 19 worked fine but now that I have two younger users who I really don't want to give admin rights to just yet this has become more of an issue.

I'm not sure why it's doing this - I've seen suggestions its a bug in VMware player and how it interacts with the Linux polkit permissions system and while I can't do much about that, what we can do is configure polkit to permit it to do what it needs without needlessly pestering the user. Some might say this is is a grave security failing, but if users are having grant permission anyway then it's no worse that what's already happening in reality.

This fix needs to be applied as root. Add a rules file called something like 70-vmware.rules to the /etc/polkit/rules.d dirctory with the following content:

polkit.addRule(function(action, subject) {
  if (action.id == "org.freedesktop.policykit.exec" &&
    action.lookup("program") == "/usr/lib/vmware/bin/vmware-setup-helper") {
    return polkit.Result.YES;
    }
});

This rule allows /usr/lib/vmware/bin/vmware-setup-helper to be executed without any further authentication. You could restrict this further to only allow this for certain users or groups but I'm working on that basis that if you've already got a login on the machine then you're welcome to use VMware Player (or workstation now they've made it free for personal use too).

I'd still like to avoid being asked to enter a licence key or select free user but my users can probably cope with that.

 

Bootnote

This has been proven on Linux Mint 22 and VMware Player 17.6.1. It might fix other past and future versions, and who knows maybe Broadcom might actually get around to fixing it properly one day.