su-to-root(1)
π su-to-root β the Debian GNU/Linux manual page, bestie edition π
okay so. welcome to su-to-root, a lil script from the Debian GNU/Linux manual (section 1, iykyk). it's the girlypop who politely asks for the root password so your menu entries can do big-girl things. π
β¨ NAME β¨
su-to-root β a simple script that gives an interactive' front-end to su`. it can be dropped into menu entry commands to ask for the root password. π
β¨ SYNOPSIS β¨
su-to-root [-X] [-p <user>] -c <command>
short, sweet, iconic. three flags, one vibe. π¦
β¨ DESCRIPTION β¨
so like, most menu entries are just vibing β they start an editor, a game, whatever, no drama. π
but some menu entries want to let the user change important system settings, and those need root privileges. that's literally the whole reason su-to-root exists: it's the one who asks for the root password. no cap. π
β¨ OPTIONS β¨
-c <command>β the command to execute, as a string. bestie this one is mandatory, you cannot skip it, it's the main character of this whole operation. π-p <user>β the name of the user to change to, instead ofroot. (yes you can be someone else, we love options.) π-Xβ the command is an X11 program that doesn't need a terminal. use this with menu entries that declareneeds="X11". π₯οΈβ¨
π ENVIRONMENT π
SU_TO_ROOT_X
selects the su-like program that su-to-root -X calls. supported values are:
gksukdesukde4suktsusssuxsudo-askpassgksudokdesudo
quick notes, bestie:
kde4sumeans the KDE4 version ofkdesu. πsudo-askpassrequiresssh-askpassto be installed. (no ssh-askpass, no askpass, sad.)
when this variable is not set, su-to-root will currently try to use gksu, kdesu, kde4su, ktsuss, sux and the built-in code, in that order β with the exception that under a KDE session, kdesu and kde4su are preferred over gksu. π
β οΈ the exact set of programs to try and their order is subject to change without notice. do not get attached. π
SU_TO_ROOT_SU
selects the su-like program used in text mode. supported values are sudo, sux and su β and the later one, su, is the default. π
πΈ FILES πΈ
/etc/su-to-rootrc~/.su-to-rootrc
su-to-root will source these files at startup, in this order. this lets you define and modify the environment variables above without restarting your X session. obsessed. πβ¨
π COPYING π
su-to-root is distributed under the GNU General Public License. (GPL 2.0 or greater). periodt. π
π AUTHORS π
- Joost Witteveen
<joostje@debian.org> - X11 support by Morten Brix Pedersen and Bill Allombert
<ballombe@debian.org>
π¦ SEE ALSO π¦
update-menus(1)menufile(5)/usr/share/doc/menu/html
and that's the whole page, bestie!! π«Ά this absolute banger of a manual page comes to you from the Debian Project, dated 20 October 1998 β yes, 1998, she's vintage, she's iconic, she's still asking for your root password. slay. π β¨π
π¦ where this page comes from
- debian trixie: menu 2.1.51
- ubuntu questing: menu 2.1.51
- ubuntu resolute: menu 2.1.51build1
- ubuntu stonking: menu 2.1.51build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms