nologin tips — authorized non-login shell literacy
nologin (as a login shell) helps authorized labs sample non-login shell literacy on hosts they own. Pair with chsh-tips, usermod-tips, login-tips, passwd-tips, useradd-tips. Prefer lab VMs — never force nologin on foreign hosts without permission.
Snapshot
| Field | Value |
|---|---|
| Surface | nologin tip checklist |
| Job | Authorized non-login shell literacy |
| Shell peer | chsh-tips |
| Account-mod peer | usermod-tips |
| Login peer | login-tips |
| Create peer | useradd-tips |
Tip checklist (authorized only)
- Confirm you may set a nologin shell on the lab host (syllabus box you own or were given access to).
- Prefer documenting who / why / ticket before any write — never lock out production accounts without change control.
- Record short factual notes; quote short Evidence (login, shell path used — never passwords).
- Optional: interactive shell restore → chsh-tips / usermod-tips.
- Optional: login-session literacy → login-tips.
- Prefer the nologin path present on the authorized host (
/usr/sbin/nologinvs/sbin/nologin) — quote which path you used. - Prefer disposable lab accounts for nologin drills.
- Stop at literacy — no attack or unauthorized lockout cookbooks.
Allowed framing
- Classroom labs assigning
/usr/sbin/nologin(or distro path) via chsh-tips / usermod-tips on authorized disposable accounts. - Binding short factual notes as Evidence (shell path + observed login refusal — no secrets).
- Documenting service/system accounts that intentionally use nologin for authorized inventory notes.
- Comparing nologin ↔ chsh / usermod / login peer tip pages under one binder.
- Testing
/etc/nologinmessage files when the syllabus authorizes that drill (distinct from shell path).
Scope we will not cover
- No crack/pirate/keygen via nologin.
- No intentional unauthorized lockouts against foreign hosts.
- No secret-theft or deceptive-banner cookbooks against hosts you do not own.
- No cookbooks that mass-assign nologin to shared/production users without authorization.
Beginner path (authorized only)
- Obtain one syllabus-approved disposable lab host with a nologin binary installed.
- Create a throwaway account via useradd-tips before any nologin drill.
- With authorization, set the lab shell to nologin via chsh-tips or usermod-tips; quote login refusal as Evidence.
- Optional: restore an interactive shell; pair session literacy with login-tips.
- Stop at literacy — no attack or unauthorized lockout cookbooks.
Practical notes for authorized labs
- Distro paths differ (
/usr/sbin/nologinvs/sbin/nologin) — quote the path that exists on the authorized host. - Ensure the chosen path is listed in
/etc/shellswhen the syllabus requires valid shells forchsh. /etc/nologin(file that blocks non-root logins) is a different surface — label it separately if the syllabus covers it.- Service accounts often use nologin intentionally — inventory notes should distinguish lab drills from production posture.
- Never commit passwd dumps to git — even for labs.
- Pair with passwd-lock-tips when comparing lock vs non-login-shell levers (keep them distinct).
FAQ-aligned refusals (quick)
- Foreign-host lockouts → refuse.
- Unauthorized mass-nologin cookbooks → refuse.
- Attack/credential-theft framing → refuse.
- Prefer authorized, redacted, secret-free Evidence.
- Use chsh / usermod / login peer tip pages when the syllabus asks.
- No crack or unauthorized-access framing.
For legal, authorized and educational use only.
FAQ
What is a "nologin tip" page in BinBench framing?
A checklist for authorized non-login shell Evidence (/usr/sbin/nologin or /sbin/nologin as login shell) on hosts you own or were given syllabus access to — not a cookbook for locking out users on foreign servers.
How does this relate to chsh-tips / usermod-tips / login-tips?
chsh-tips covers interactive shell changes; usermod-tips covers -s admin changes; login-tips covers login-session literacy. This page zooms on a general nologin tip checklist — it does not overwrite those pages.
Can I set nologin shells on hosts I do not own?
No. Authorization first. BinBench will not publish unauthorized lockouts against foreign hosts.
Does this teach attack PoCs via nologin?
No. Mentions of attack/bypass appear only as refusals. Authorized literacy only — prefer lab VMs and redacted samples.
Does this teach secret theft via nologin?
No. Never paste passwords or plant deceptive login banners with secrets. Prefer documenting shell-path intent only.