I'm doing someone a big favor and don't have the ability to reinstall from OS media right now. I'm sitting in front of an OS X system in single-user mode, where the user just completely overwrote their /etc/passwd file while mucking with stuff they shouldn't have. Does anyone happen to have the default contents for /etc/passwd? don't have another Mac handy.
I know OS X uses the ni database instead of passwd/shadow/etc., but it does use those for single user mode, and I fear if I reboot with the empty /etc/passwd I'll hose single user access. I tried "nidump passwd . > /etc/passwd", but it just hangs until interrupted by CTRL-C, any ideas why that wouldn't work?
Any help appreciated... thx
I know OS X uses the ni database instead of passwd/shadow/etc., but it does use those for single user mode, and I fear if I reboot with the empty /etc/passwd I'll hose single user access. I tried "nidump passwd . > /etc/passwd", but it just hangs until interrupted by CTRL-C, any ideas why that wouldn't work?
Any help appreciated... thx