Run programs and actions without entering passwordHere we will explain how to run your common desktop programs and actions without entering password. There are several ways to do that.
After hours of searching simple solution I found it in Synaptic Package Manager, it is so simple taht simpler cannot be :). Just open Synaptic Package Manger , type policykit-desktop-privileges in search field, and when it appears select to install, then Apply... that is all!
You can also install it by command line: sudo apt-get install policykit-desktop-privileges
Also you can download it from this link.
This package provides a set of PolicyKit privileges which allow Administrators to run common actions without being asked for their password.
Those actions are:
- mounting and checking internal disk drives (through udisks)
- setting the time and timezone (through the GNOME clock applet or through KDE)
- Ading and changing system-wide NetworkManager connections including ethernet, vpn, dsl, wirelles...
- setting the CPU speed and policy (through the GNOME CPU frequency applet)
- Update already installed software (Not install, everyone must enter password on install, very good for companies and organizations)
- Configure printers
If you need more control you can edit policykit by yourself, or you can edit sudoers.
How to edit sudoers configuration
Editing sudoers will help you to configure which programs (not actions) you can open with/without password.
I will explain you simplest way to edit sudoers, you can read details on link1 , link2 and link3.
Fisrt select editor in command line: sudo select-editor
I recommend to choose nano editor because it os simplest.
Then lunch editor, you MUST use this command because it will take care that you don't make mistake and avoid system crash.Run command: sudo visudo
In the editor, if you want for example to access k3b and amarok without entering password add this lines:
'%' sign means that it applies on group named admin, if you want to apply on user delete sign '%'
If you want to have access to all programs without password add this line:
Save it , and that's it.
How to edit policykit configuration
Editing policykit will help you to determine which action you can open with/without password.
I will explain you simplest way to edit sudoers, you can read details on link1 and link2.