Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I should add I don't think it will work because it uses D-BUS.
D-Bus is a technical specification for an inter-process communication (IPC) system, allowing communication between multiple concurrently running computer programs (that is, processes). D-Bus was designed as part of the effort of the freedesktop.org project to standardize services provided by Linux desktop environments such as GNOME and KDE.
If you define "use" as "create authorization rules" then the answer is no as configuration is only XML/JS files. If you define "use" as "have authorization rules apply to command line applications" then the answer is "not likely" as an application has to incorporate support for PolicyKit (something like 'ldd /path/binary|grep libpolkit') or request its service. Is there a particular problem you're trying to solve?
Without using sudo and in run level 5 (rhel) I am able to create a pkla file that has an action that allows me to install a package without prompting for a password providing I use the software gui to install.
However if I try and install the same package using "yum install .... " from the command line I get a message saying only root can do that.
The problem I'm trying to solve is that I don't want to use sudo for reasons that are specific to my environment but something like policy kit might work providing I don't need to use run level 5, is that possible ?
If you define "use" as "have authorization rules apply to command line applications" then the answer is "not likely" as an application has to incorporate support for PolicyKit (something like 'ldd /path/binary|grep libpolkit') or request its service. Is there a particular problem you're trying to solve?
Reviving this old post, because I was asking myself the same question (can PolKit be used without desktop environment ?).
Answer is yes, since it's used by systemd, even in a very basic server installation, without any X11/Wayland stuff whatsoever :
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.