Emergency /etc/passwd Recovery

Recover a corrupted /etc/passwd that has locked out all users including root.

A advanced Linux challenge worth 20 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.

The Challenge

A buggy user-management script merged entries in /etc/passwd — no newlines between them. All logins fail including root. The lab provides a corrupted copy at /tmp/test-passwd to practice the repair workflow.

Your tasks: