LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Mutliple wheel users and pkexec authentication (https://www.linuxquestions.org/questions/linux-security-4/mutliple-wheel-users-and-pkexec-authentication-4175528954/)

upnort 12-21-2014 05:16 PM

Mutliple wheel users and pkexec authentication
 
Fedora 21.

I have two wheel users. When I am logged in as one user and run pkexec associated with a respective policy file, the dialog asks to select a user. I prefer not to list the other user and only use the account to which I am logged.

Is there a way to modify the respective *.policy file or create a polkit rule to change the dialog behavior?

Thanks. :)

unSpawn 12-22-2014 04:21 AM

Maybe
Code:

alias pkexec='/usr/bin/pkexec --user ${LOGNAME}'
or see the wrapper example in 'man pkexec'?

upnort 12-22-2014 01:12 PM

I was thinking about something like that, but then I tested two other distros and the second wheel account does not appear. Thus there seems to be some mechanism at work in Fedora to cause the second name to appear.

Update:
Code:

alias pkexec='/usr/bin/pkexec --user ${LOGNAME}'
That doesn't work. Still get the drop-down list. :(


All times are GMT -5. The time now is 12:04 AM.