runuser tips — authorized user-switch literacy
runuser helps authorized labs sample non-setuid user-switch literacy on hosts they own. Pair with login-tips, sg-tips, nologin-tips, useradd-tips, chsh-tips. Prefer lab VMs — never become other users on foreign hosts without permission.
Snapshot
| Field | Value |
|---|---|
| Surface | runuser tip checklist |
| Job | Authorized user-switch literacy |
| Login peer | login-tips |
| Group peer | sg-tips |
| Deny peer | nologin-tips |
| Create peer | useradd-tips |
Tip checklist (authorized only)
- Confirm you may run
runuseron the lab host (syllabus box you own or were given access to; typically requires root). - Prefer documenting who / why / ticket before any user switch — never become production service users without change control.
- Record short factual notes; quote short Evidence (target user name/UID, command label — never passwords).
- Optional: login path → login-tips.
- Optional: alternate-group path → sg-tips.
- Prefer disposable lab users for runuser drills; quote
idafterward as Evidence. - Prefer
runuser -u labuser -- commandfor one-shot Evidence over lingering interactive shells when the syllabus allows. - Stop at literacy — no attack or unauthorized user-impersonation cookbooks.
Allowed framing
- Classroom labs reviewing
runuser -u/-gon authorized disposable users. - Binding short factual notes as Evidence (UID/name/command labels — no secrets).
- Documenting expected vs observed effective identity for authorized inventory notes.
- Comparing runuser ↔ login / sg / nologin peer tip pages under one binder.
- Testing PAM/session differences vs
suonly when the syllabus authorizes that drill.
Scope we will not cover
- No crack/pirate/keygen via runuser.
- No intentional unauthorized user impersonation against foreign hosts.
- No secret-theft or password harvesting against hosts you do not own.
- No cookbooks that abuse runuser as privilege escalation without authorization.
Beginner path (authorized only)
- Obtain one syllabus-approved disposable lab host with util-linux installed.
- Create a throwaway user via useradd-tips before any runuser drill.
- With authorization (typically as root), run
runuser -u labuser -- id; quote non-secret UID/name Evidence. - Optional: group peer with sg-tips; login peer with login-tips.
- Stop at literacy — no attack or unauthorized user-switch cookbooks.
Practical notes for authorized labs
runuseris the non-setuid companion often used from scripts/services — keep Evidence labels distinct from interactivesu/login.- Target-user passwords are irrelevant for root-started
runuser— never invent password-bypass cookbooks. - Pair with nologin-tips when documenting denied shells for service accounts (separate concern).
- Prefer documenting the exact user the syllabus authorized — avoid guessing production service accounts.
- Never commit PAM dumps or credential material to git — even for labs.
- Label lab-only identity switches clearly so they are not mistaken for production posture.
FAQ-aligned refusals (quick)
- Foreign-host user-switch drills → refuse.
- Unauthorized impersonation / privilege-escalation cookbooks → refuse.
- Attack/credential-theft framing → refuse.
- Prefer authorized, redacted, secret-free Evidence.
- Use login / sg / nologin peer tip pages when the syllabus asks.
- No crack or unauthorized-access framing.
For legal, authorized and educational use only.
FAQ
What is a "runuser tip" page in BinBench framing?
A checklist for authorized non-setuid user-switch Evidence (runuser -u user -- command) on hosts you own or were given syllabus access to — not a cookbook for becoming other users on foreign servers.
How does this relate to login-tips / sg-tips / nologin-tips?
login-tips covers login(1); sg-tips covers alternate-group shells; nologin-tips covers denied shells. This page zooms on a general runuser tip checklist — it does not overwrite those pages.
Can I run runuser against hosts I do not own?
No. Authorization first. BinBench will not publish unauthorized user-switch drills against foreign hosts.
Does this teach attack PoCs via runuser?
No. Mentions of attack/bypass appear only as refusals. Authorized literacy only — prefer lab VMs and redacted samples.
Does this teach secret theft via runuser?
No. Never paste target-user passwords, PAM secrets, or foreign host credential material into notes. Prefer documenting intended UID/name and non-secret command labels only.