pkexec doesn't bring up a graphical password prompt

"\"Cliff mcDiarmid\"" ([email protected] via blfs-support Mailing List) <[email protected]> Thu, 23 Oct 2025 21:08:16 +0000
Newsgroups gmane.linux.lfs.beyond.support
Message-ID <[email protected]>
Hi

I'm not big on pexec, pam and polkit so I need some advice here please.

I have a program(Tuxedo Control Centre)that requires the root password to save
any settings.   This not achieved with ssh-askpass as with gparted but, (I
think) with pexec and pam through polkit.

The program works fine on the distro that I used for LFS.   When settings are
saved the following appears in the journal:

Oct 20 21:33:22 tuxedo-14 pkexec[7933]: pam_unix(polkit-1:session): session
opened for user root(uid=0) by cliffhanger(uid=1000)
Oct 20 21:33:22 tuxedo-14 pkexec[7933]: cliffhanger: Executing command
[USER=root] [TTY=unknown] [CWD=/home/cliffhanger] [COMMAND=/opt/tuxedo-
control-center/resources/dist/tuxedo-control-center/data/service/tccd --
new_profiles /tmp/tmptccprofiles --new_settings /tmp/tmptccsettings]

I have compared the .policy files, .rules files etc from the distro and LFS
and can't see any thing different that would influence the error I get under
LFS when saving, which is:

Oct 23 16:42:47 cliffhanger pkexec[8626]: pam_warn(polkit-1:session):
function=[pam_sm_open_session] flags=0 service=[polkit-1] terminal=[<unknown>]
user=[root] ruser=[<unknown>] rhost=[<unknown>]

Both the distro and LFS do have two .policy files under  /usr/share/polkit-1/
actions

com.tuxedocomputers.tccd.policy - I thought this was responsible
com.tuxedocomputers.tomte.policy

But both are identical under both OS.

Can someone see what might be wrong here?  It seems it might be a pam issue
with authentication?

Cliff

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-support
Unsubscribe: See the above information page