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

WE’RE HOSTING AN OPENDAYLIGHT HACKFEST IN JAPAN!

The OpenDaylight Project has quickly grown to become a global community, with more than 250 contributors working to advance open SDN and NFV from all corners of the world. This includes 11 ambassadors worldwide and OpenDaylight User Groups (ODLUG) in six cities across three countries. We are excited to host our first OpenDaylight HackFest in Japan in less than two weeks, and the good news is that it’s free to attend. Read more

Debian Project mourns the loss of Peter Miller

The Debian Project recently learned that it has lost a member of its community. Peter Miller died on July 27th after a long battle with leukemia. Peter was a relative newcomer to the Debian project, but his contributions to Free and Open Source Software goes back the the late 1980s. Peter was significant contributor to GNU gettext as well as being the main upstream author and maintainer of other projects that ship as part of Debian, including, but not limited to srecord, aegis and cook. Peter was also the author of the paper "Recursive Make Considered Harmful". The Debian Project honours his good work and strong dedication to Debian and Free Software. The contributions of Peter will not be forgotten, and the high standards of his work will continue to serve as an inspiration to others. Read more

A Seat at the Big Kids’ Table at Ohio LinuxFest

Ohio LinuxFest isn’t just another excuse to travel. It’s a means for us to fulfill ourselves, and to get honest, tangible feedback for what we do and for what others are doing. It’s a place where ideas are sounded, bent, crumpled and turned until they either come out of the crucible perfect…or useless. That’s what our gatherings are about. They are about excitement and promise. They​ are about making sure the next generation has a real chance to put the first human footprint on Mars. They are a chance to insure they have the tools and the curiosity to take something apart and then make it better. This next generation will cure diabetes; they will make cancer an inconvenience and not a death sentence. Read more

OpenStack Juno is out, Debian (and Ubuntu Trusty ports) packages ready

This is just a quick announce: Debian packages for Juno are out. In fact, they were ready the day of the release, on the 16th of October. I uploaded it all (to Experimental) the same day, literally a few hours after the final released was git tagged. But I had no time to announce it. This week-end, I took the time to do an Ubuntu Trusty port, which I also publish (it’s just a mater of rebuilding all, and it should work out of the box). Here are the backports repositories. For Wheezy: deb http://archive.gplhost.com/debian juno-backports main deb http://archive.gplhost.com/debian juno main For trusty: deb http://archive.gplhost.com/debian trusty-juno-backports main Read more