SU(1)
π
SU(1) β the su page, but make it cute
okay bestie, welcome to the General Commands Manual entry for su, aka the glow-up your terminal identity has been waiting for π
β¨ NAME β¨
su β substitute user identity
like, literally swap who you are. main character energy transfer. no cap.
π¦ SYNOPSIS π¦
su [-K | --no-kerberos] [-f] [-l | --full] [-m] [-i instance |
--instance=instance] [-c command | --command=command] [login [shell
arguments]]
she's giving "many flags, one girl." look at her. iconic.
πΈ DESCRIPTION πΈ
so here's the tea β β su will use Kerberos authentication, provided that an instance for the user who wants to change their effective UID is present in a file named .k5login in the target user id's home directory. that's the whole vibe check: no .k5login entry, no Kerberos moment. π
there's a β¨special caseβ¨ tho, and it's important so pay attention bestie: βroot'sβ ~/.k5login needs to contain an entry for:
βuser/β¨instanceβ©@REALMβ
for su to succeed (where β¨instanceβ© is root unless you changed it with -i). yes queen, -i is the mood-setter here. π
now for the messy part π β if there's either no entry for the current user in said file, or other problems happen (like missing host/hostname@REALM keys in the system's keytab, or the user just typing the wrong password), then su will fall back to traditional /etc/passwd authentication. it's giving backup plan. it's giving "we tried, we really did."
and when it's running on /etc/passwd authentication? su allows βrootβ access only to members of the group wheel β OR to any user (as long as they know the βrootβ password) if that group does not exist, or has no members. that's the rule, periodt. π«Ά
the options are as follows:
π OPTIONS π
-K,--no-kerberosβ don't use Kerberos. justβ¦ don't. skip it entirely. π-fβ don't read.cshrc. we're leaving that file on read, bestie. π-l,--fullβ simulate full login. the whole cinematic experience, not just a cameo. β¨-mβ leave environment unmodified. touch nothing, change nothing, chaotic-neutral behavior. π§- *
-i*instance,--instance=instance β root instance to use. this is the one that matters for that special case up there. π - *
-c*command,--command=command β command to execute. tell her what to do and she'll do it. β
π SEE ALSO π
ngl, there isn't a SEE ALSO section on this one β she's a standalone queen, she doesn't need to name-drop other pages. π
β οΈ lowkey a heads-up: the Kerberos-to-/etc/passwdfallback and thewheel-group-only root access are real security behavior, not vibes. don't sleep on them. π
and that's the whole page, bestie!! this one came from HEIMDAL, dated January 12, 2006 β yeah she's vintage, she's an elder icon, and she still ate. mwah ππ
π¦ where this page comes from
- debian bookworm: heimdal-clients 7.8.git20221117.28daf24+dfsg-2 Β· BSD-3-Clause
- debian trixie: heimdal-clients 7.8.git20221117.28daf24+dfsg-9+deb13u1 Β· BSD-3-Clause
- ubuntu jammy: heimdal-clients 7.7.0+dfsg-3ubuntu1 Β· BSD-3-Clause
- ubuntu noble: heimdal-clients 7.8.git20221117.28daf24+dfsg-5ubuntu3 Β· BSD-3-Clause
- ubuntu questing: heimdal-clients 7.8.git20221117.28daf24+dfsg-9ubuntu1
- ubuntu resolute: heimdal-clients 7.8.git20221117.28daf24+dfsg-11ubuntu1 Β· BSD-3-Clause
- ubuntu stonking: heimdal-clients 7.8.git20240113.1b4565a+dfsg-2ubuntu1 Β· BSD-3-Clause
- Copyright (c) 2003 - 2006 Kungliga Tekniska HΓΆgskolan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms