SU(1)

πŸ“¦ version 7.8.0, in epel 10, epel 9, fedora 43, fedora 44

πŸ’… 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/passwd fallback and the wheel-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