![]() ![]() ![]() auth_self_keep: The same as auth_self but, like sudo, the authorization lasts a few minutes.auth_admin: Authentication as an administrative user is require.auth_self: Authentication is required but the user need not be an administrative user.yes: The user is authorized to carry out the action without any authentication.There is therefore no need for authentication. no: The user is not authorized to carry out the action.How to tell it to not ask for a password after the first time applying it to a command?įor these three setting tags: allow_any, allow_inactive and allow_active from the policy file, the following options are available: Authentication is required to run gedit gedit auth_admin auth_admin auth_admin /usr/bin/gedit true.you can create a new policy file in /usr/share/polkit-1/actions named .policy with the following xml code inside where the most important thing is to set .allow_gui to a nonempty value:.These two variables will be retained if the .allow_gui annotation on an action is set to a nonempty value this is discouraged, though, and should only be used for legacy programs. ![]() alias pkexec='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY'.As result you can create an ( permanent) alias (this is the simpliest way):.pkexec will not allow you to run X11 applications as another user since the $DISPLAY and $XAUTHORITY environment variables are not set.And this is normal because man pkexec is very clear in this matter: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit.For more background information I copied from answers here: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |