You are not logged in.

#1 2023-04-28 19:53:45

retro
Member
Registered: 2021-05-22
Posts: 7

[solved] pkexec fails, can't run vmware player.

hi, first post here. title says pretty much everything, i installed vmware player using the .bundle provided on the vmware website, and it installed just fine.
i'm running it from the command line, 'cos if i use an app launcher, it just hangs at the final setup screen when clicking on the "Finish" button.
with the command line, i managed to figure out why: when clicking on that button, pkexec is launched and prompts for my password. however, when entering my password, it just doesn't work, giving:

polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

This incident has been reported.

i've tried that method where you open one terminal and run "pkttyagent --process BASH_PID" while leaving the other terminal free, but didn't work, got the exact same error. unsure of what to do now, since i can't find anyone with the same issue.

Last edited by retro (2023-04-29 22:10:53)

Offline

#2 2023-04-28 20:28:31

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [solved] pkexec fails, can't run vmware player.

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2023-04-28 20:46:25

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] pkexec fails, can't run vmware player.

run "pkttyagent --process BASH_PID"

If that's literal, it's literally wrong.
https://bbs.archlinux.org/viewtopic.php … 5#p2028455

Offline

#4 2023-04-28 20:59:12

retro
Member
Registered: 2021-05-22
Posts: 7

Re: [solved] pkexec fails, can't run vmware player.

it's not literal.

Offline

#5 2023-04-28 21:05:07

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] pkexec fails, can't run vmware player.

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

Post *exactly* what you tried and the *exact* results - not "I did something kinda like stuff and its dids nots works", nobody can constructively comment on that.

Offline

#6 2023-04-28 21:30:26

retro
Member
Registered: 2021-05-22
Posts: 7

Re: [solved] pkexec fails, can't run vmware player.

i'm sorry, i didn't remember about that when writing my post. thanks for reminding, though.

Offline

#7 2023-04-28 21:37:24

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] pkexec fails, can't run vmware player.

See the first link I posted, try along that description and post the results.

Offline

#8 2023-04-28 21:57:06

retro
Member
Registered: 2021-05-22
Posts: 7

Re: [solved] pkexec fails, can't run vmware player.

i killed the vmware process and ran

$ echo $$

then, opened another terminal, ran

$ pkttyagent --process $THE_PID

and went back to the 1st terminal, launched vmplayer from there, clicked on "Finish", then pkexec popped up in my terminal:

==== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
Authentication is needed to run `/usr/lib/vmware/bin/vmware-setup-helper' as the super user
Authenticating as: retro
Password: 

entered the password, and:

polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

This incident has been reported.

and it keeps on the same error, so i killed vmware.

Offline

#9 2023-04-28 22:09:55

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] pkexec fails, can't run vmware player.

"$THE_PID" isn't a valid variable - if that's not what you literally entered (…) the problem might be vmplayer.
Can you "pkexec ls" w/ this setup?

If yes, you'll have to run pkttyagent for a different PID (from vmplayer or one of its sub-processes)
Running a "real" polkit agent isn't an option?
https://wiki.archlinux.org/title/Polkit … ion_agents

Offline

#10 2023-04-28 22:25:04

retro
Member
Registered: 2021-05-22
Posts: 7

Re: [solved] pkexec fails, can't run vmware player.

literally "$THE_PID" wasn't what i entered.

$ pkexec ls

gives no output. and running pkttyagent for vmplayer doesn't work, not even for its sub-processes, i get the same error.
i'll try one of the polkit agents you listed.

Offline

#11 2023-04-28 22:28:41

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] pkexec fails, can't run vmware player.

If you run it in an empty directory, there'll be no output.
The question was whether you got asked for and could provide your credentials.

Offline

#12 2023-04-28 23:06:31

retro
Member
Registered: 2021-05-22
Posts: 7

Re: [solved] pkexec fails, can't run vmware player.

well, i wasn't running it in an empty directory.

Offline

#13 2023-04-28 23:36:14

retro
Member
Registered: 2021-05-22
Posts: 7

Re: [solved] pkexec fails, can't run vmware player.

hey, using polkit-gnome worked now! thanks!

Offline

#14 2023-04-29 06:01:50

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] pkexec fails, can't run vmware player.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

For the next time, please really see https://bbs.archlinux.org/viewtopic.php?id=57855 and the links there.

gives no output

and

well, i wasn't running it in an empty directory.

provide barely relevant information wrt to the behavior of pkttyagent (and whether you were you offered to enter creds)
We don't see what you see and you're not able to interpret what you see, that's why you ask here.
So handing us casual interpetations of what you see doesn't help you.

Also, just in case: if you happen to have tried try this across (virtual) machines - that's not gonna work for sure.

Offline

Board footer

Powered by FluxBB