Language Selection

English French German Italian Portuguese Spanish

Consolehelper Quick HowTo

Filed under
HowTos

Maybe you have noticed how you are asked for root's password when you launch Synaptic, Yumex, or one of the Red Hat GUI system tools (system-config-*).

Maybe you have also noticed how (some releases of some) distros (Debian, Ubuntu) offer you either gnomesu (gnome-sudo), or gksudo (or gtksudo) as X front-ends to su, allowing you to run custom commands as root -- the most commmon use is to run Nautilus file manager as root.

Some other distros (Mandriva, Fedora) don't offer (anymore) any Gtk/GNOME su front-ends. Supposing you have installed KDE even if you're using another desktop environment, you may use kdesu instead.

But what if you don't have, or you don't want to use kdesu?

As it has been said, gnomesu/gksudo are not part of GNOME, nor officially supported by some distros because you can always use more advanced authentication methods, namely consolehelper, based on PAM (Pluggable Authentication Modules).

After a quick look at: man 8 consolehelper, man 8 userhelper, man 8 pam, and man 8 pam_console, and at the way other applications use PAM, I made my own way to add a "Root File Manager" icon in a distro that only has kdesu (which I will not use).

Full Story.

More in Tux Machines

Arch Linux 2015.03.01 Is Now Available for Download

A brand-new ISO image of the lightweight, highly customizable and powerful Arch Linux computer operating system has been released today, March 1, 2015, for those who want to deploy the acclaimed distribution on new computers. Read more

Cuberox, App-Driven Linux-Based Cube, Has Six Touch Screens

Vancouver-based startup Cuberox launched a new Kickstarter campaign on Tuesday to raise funds for a Linux-based cube of the same name. This gadget sports a touch-enabled screen on each side and is capable of running six apps simultaneously. The campaign is shooting to acquire $150,000 in funding before the March 29, 2015 deadline. Read more

Rancher Labs builds Linux system for Docker

As Docker continues to gain popularity, more and more minimalist operating systems are emerging to run the platform in production and at scale. Rancher Labs recently announced a new open-source operating system designed explicitly for Docker. While Docker is able run on almost any Linux distribution, RancherOS was conceptualized out of the company’s own needs, according to Sheng Liang, founder and CEO of Rancher Labs. Read more

The state of Linux gaming in the SteamOS era

For decades after Linux's early '90s debut, even the hardest of hardcore boosters for the open source operating system had to admit that it couldn't really compete in one important area of software: gaming. "Back in around 2010 you only had two choices for gaming on Linux," Che Dean, editor of Linux gaming news site Rootgamer recalls. "Play the few open source titles, Super Tux Kart and so on, or use WINE to play your Windows titles." Read more