CONSOLEHELPER(8)
β¨ CONSOLEHELPER(8) β¨
okay bestie, welcome to section 8 of the System Manager's Manual β this is consolehelper and she's lowkey the β¨middleware queenβ¨ of your system π
πΈ NAME πΈ
consolehelper β a wrapper that helps console users run system programs π«Ά
π SYNOPSIS π
progname [ options ]
π¦ DESCRIPTION π¦
so consolehelper is this tool that makes it so easy for console users to run system programs, and the way it does that is by doing authentication via PAM β and PAM can be set up to either trust all console users, or to ask for a password, at the system administrator's discretion π. When it's possible, the authentication is done graphically β¨; but if that's not happening, then it's done within the text console from which consolehelper was started. either way, she's got you π
The whole vibe is that it's intended to be completely transparent. Which means β and this is the important part β the user will never run the consolehelper program directly. nope, never, not once π
Instead, programs like /sbin/shutdown are paired with a link from /usr/bin/shutdown to /usr/bin/consolehelper. so then when non-root users (specifically, users without /sbin in their path, or with /sbin after /usr/bin) call the "shutdown" program, consolehelper gets invoked to authenticate the action and then invoke /sbin/shutdown. it's giving invisible assistant energy fr fr π§
okay real talk though β consolehelper itself has no privileges. like, zero. she calls the userhelper(8) program to do the real work. she's just the messenger bestie π
consolehelper requires that a PAM configuration for every managed program exist. so to make /sbin/foo or /usr/sbin/foo managed, you need to:
- create a link from
/usr/bin/footo/usr/bin/consolehelperπ - create the file
/etc/pam.d/foo, normally using thepam_console(8)PAM module π
that's the whole recipe. no cap. β¨
π OPTIONS π
This program has no command line options of its own β she passes all command line options on to the program she's calling. so whatever flags you throw at her, she just hands them straight over. generous queen π
π SEE ALSO π
π AUTHOR π
Michael K. Johnson <johnsonm@redhat.com> β icon, legend, the moment π«Ά
and that's the whole page bestie!! Red Hat Software, 18 March 1999, CONSOLEHELPER(8) β she's been slaying since the nineties and she's still here πβ¨ periodt π
π¦ where this page comes from
- centos-stream 10: usermode 1.114-14.el10 Β· GPL-2.0-or-later
- centos-stream 9: usermode 1.114-7.el9 Β· GPLv2+
- debian bookworm: usermode 1.114-3+b1 Β· GPL-2.0-or-later
- debian trixie: usermode 1.114-3+b2 Β· GPL-2.0-or-later
- fedora 43: usermode 1.114-13.fc43 Β· GPL-2.0-or-later
- fedora 44: usermode 1.114-16.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: usermode 1.114-3 Β· GPL-2.0-or-later
- ubuntu noble: usermode 1.114-3build2 Β· GPL-2.0-or-later
- ubuntu questing: usermode 1.114-3build2
- ubuntu resolute: usermode 1.114-3build3 Β· GPL-2.0-or-later
- ubuntu stonking: usermode 1.114-3build3 Β· GPL-2.0-or-later
- Copyright (C) 1999 Red Hat Software, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms