userdel tips — authorized account-delete literacy
userdel helps authorized labs sample account-delete literacy on hosts they own. Pair with useradd-tips, usermod-tips, groupdel-tips, passwd-tips, getent-tips. Prefer lab VMs — never delete accounts on foreign hosts without permission.
Snapshot
| Field | Value |
|---|---|
| Surface | userdel tip checklist |
| Job | Authorized account-delete literacy |
| Create peer | useradd-tips |
| Modify peer | usermod-tips |
| Group-delete peer | groupdel-tips |
| NSS peer | getent-tips |
Tip checklist (authorized only)
- Confirm you may run
userdelon the lab host (syllabus box you own or were given access to). - Prefer documenting who / why / ticket before any delete — never remove production accounts without change control.
- Record short factual notes; quote short Evidence (login, UID, whether
-rremoved home — never passwords). - Optional: create path → useradd-tips.
- Optional: modify path → usermod-tips.
- Optional: group delete → groupdel-tips.
- Prefer disposable lab accounts for delete drills; quote
getentabsence afterward as Evidence. - Stop at literacy — no attack or unauthorized account-wipe cookbooks.
Allowed framing
- Classroom labs reviewing
userdel/userdel -ron authorized disposable accounts. - Binding short factual notes as Evidence (login/UID/home-removal intent — no secrets).
- Documenting expected vs observed NSS absence for authorized inventory notes.
- Comparing userdel ↔ useradd / usermod / groupdel peer tip pages under one binder.
- Testing locked-login refusals when the syllabus authorizes that drill (account still logged in).
Scope we will not cover
- No crack/pirate/keygen via userdel.
- No intentional unauthorized account wipes against foreign hosts.
- No secret-theft or home-directory exfiltration against hosts you do not own.
- No cookbooks that mass-delete production or shared UIDs without authorization.
Beginner path (authorized only)
- Obtain one syllabus-approved disposable lab host with shadow-utils installed.
- Create a throwaway account via useradd-tips before any userdel drill.
- With authorization, delete the lab account (
userdeloruserdel -r); quotegetent passwdabsence as Evidence. - Optional: group cleanup with groupdel-tips when the syllabus covers orphan groups.
- Stop at literacy — no attack or unauthorized account-delete cookbooks.
Practical notes for authorized labs
-rremoves the home directory and mail spool when present — quote whether the syllabus asked for it.- Prefer deleting disposable lab accounts; never experiment on shared production UIDs.
- Pair with getent-tips for before/after NSS Evidence.
- Processes still owned by the deleted UID may linger — inventory notes should mention follow-up when the syllabus covers it.
- Never commit before/after passwd dumps to git — even for labs.
- Label lab-only deletes clearly so they are not mistaken for production posture.
FAQ-aligned refusals (quick)
- Foreign-host account deletes → refuse.
- Unauthorized mass-wipe cookbooks → refuse.
- Attack/credential-theft framing → refuse.
- Prefer authorized, redacted, secret-free Evidence.
- Use useradd / usermod / groupdel peer tip pages when the syllabus asks.
- No crack or unauthorized-access framing.
For legal, authorized and educational use only.
FAQ
What is a "userdel tip" page in BinBench framing?
A checklist for authorized account-delete Evidence (userdel flags) on hosts you own or were given syllabus access to — not a cookbook for removing accounts on foreign servers.
How does this relate to useradd-tips / usermod-tips / groupdel-tips?
useradd-tips covers create; usermod-tips covers modify; groupdel-tips covers group delete. This page zooms on a general userdel tip checklist — it does not overwrite those pages.
Can I run userdel against hosts I do not own?
No. Authorization first. BinBench will not publish unauthorized account deletes against foreign hosts.
Does this teach attack PoCs via userdel?
No. Mentions of attack/bypass appear only as refusals. Authorized literacy only — prefer lab VMs and redacted samples.
Does this teach secret theft via userdel?
No. Never paste passwords, shadow hashes, or home-directory dumps into notes. Prefer documenting delete intent and non-secret UID/login labels only.