LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-21-2014, 05:16 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
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.
 
Old 12-22-2014, 04:21 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe
Code:
alias pkexec='/usr/bin/pkexec --user ${LOGNAME}'
or see the wrapper example in 'man pkexec'?
 
Old 12-22-2014, 01:12 PM   #3
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
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.

Last edited by upnort; 12-26-2014 at 02:56 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mutliple CLI? malak33 Linux - Newbie 9 12-10-2011 05:43 PM
Crontab for pkexec as root spyzer.abhishek0 Linux - Newbie 3 07-25-2011 05:53 PM
Security with regards to wheel group, and sudo users. jdaw Linux - Security 5 10-20-2008 07:29 AM
How do I make it so users have to be in the wheel group to su to root? abefroman Linux - Security 7 05-02-2005 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration