Giter Site home page Giter Site logo

boredsquirrel / polkit-helper Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 23 KB

A small script creating policykit rules allowing wheel users to execute tasks like mounting LUKS drives, starting virt-manager and more

License: GNU General Public License v3.0

Shell 100.00%
decrypt kde luks mount password pkexec polkit udisks kde-partitionmanager

polkit-helper's Introduction

Polkit-helper

A small script creating PolKit rules, allowing wheel users to execute tasks like mounting LUKS drives, starting virt-manager and anything you like.

Use case:

On fedora (and probably other Distros) many apps are permitted to run without a sudo password prompt. This is quite annoying, especially when automounting LUKS drives or wanting to use virt-manager.

Infos:

Install:

wget https://github.com/trytomakeyouprivate/Polkit-helper/raw/main/create-polkit-rule -P ~/.local/bin/ && chmod +x ~/.local/bin/create-polkit-rule && echo "Polkit rule helper installed."

How to use

  • Try to execute an app and see the password prompt, on KDE click on "show details" and copy the process ID
  • Launch the script in the Terminal by entering create-polkit-rule
  • Enter any name (without empty spaces) to name the rule.
  • Paste the processes name

Be careful not to allow critical processes to run without a password prompt!

Examples:

Unlocking and mounting LUKS drives:

  • org.freedesktop.udisks2.encrypted-unlock-system
  • org.freedesktop.udisks2.filesystem-mount-system

Using virt-manager:

  • org.libvirt.unix.manage

This is done by adding the user to the group libvirt !

sudo groupadd libvirt
sudo usermod -aG libvirt $USER

polkit-helper's People

Contributors

boredsquirrel avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.