In Phase 1, one password opened everything (step 5). Keys fixed the shell in step 3; now the web gets its own login too, so a leak of one is a leak of one, not of all.
1. Check the web still takes the shared login
200: the shared account still works here.
2. Give the web its own credential
Write a web-only login to the server. It’s separate from the netstate system account, which is now key-only.
3. Try both logins again
You should see
- The shared login:
401. It no longer opens the web. - The web-only login:
200.
What it means
The web now has an account of its own, with no bearing on the Linux login. The shell takes a key and no password; the web takes its own credential and nothing else. Reusing one to reach the other, which walked straight in during Phase 1, now gets nowhere. Each door has its own key.