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

Canonical Publishes Impressive Roadmap for All of Their Ubuntu Products

Canonical is working on multiple projects at the same time, and it's often difficult to understand their plans, but Director of Product Strategy Engineering Olli Ries has shed some light on how their inner workings are structured and how things are evolving, from the inside out. Read more

Making the Case for Koha: Why Libraries Should Consider an Open Source ILS

When Engard educates people on what open source is, what it means to use open source software, what types of software are available, which companies use it, and who trusts it, they see that their fears are unfounded, she says. To back up her discussions with facts, she maintains bibliographies on open source and open source security. She also has a set of bookmarks on Delicious, and she wrote a book, Practical Open Source Software for Libraries. “[W]hen people come to me and say open source is too risky … I have facts and figures, just what librarians want, to say no, all software has potential risk associated with it. You have to evaluate software side by side, and look at it, and really take the time to compare it. … I know you’re going to pick the open source solution over the proprietary because it is so quickly developed, so quickly fixed, so ahead of the curve as far as technology is concerned.” Read more

Review of Ubuntu Phone – A Work Still Under Progress

However, what one must remember is that the Ubuntu Phone is still a work in progress. The company is issuing updates every month and is relying on its current user base regarding the feedback and ideas. Right now, only three Ubuntu phones are present in the market ranging from $186 to $328 roughly. Ubuntu has been in hibernation mode for the development of this OS for a long time and it looked like they might be consumer ready now, however, after seeing the Ubuntu Phone it looks like they might be far from that scenario right now. Read more

Android M news: Release date delayed, to come out in September or October?

Google reveals that the newest Android operating system initially codenamed as "Android M" will be delaying the release of Android M Developer Preview 3 for selected Nexus devices. The information was shared by the company's employee and moderator Wojtek Kaliciński on the Developer community page in Google+. Read more