WD ShareSpace, running latest firmware (just updated, so I could get ssh access). But I'm more used to CentOS…
Using a poorly-constructed sed command, I accidentally changed root's entry in /etc/passwd to
Of course, it should have been /opt/bin/tcsh, because I'm following
these directions. Now I can't login as root or do a "su -". And because /etc/passwd is
-rw-rr 1 root root 917 Jul 10 17:02 /etc/passwd
I can't edit that file (or /etc/group, to add some other user to the root group).
I tried some tricks (e.g. ln -s /etc /Share/Public, and edit from a Windows machine) but of course that didn't work. Were this a normal machine, I'd boot into single-user mode and fix it. Or mount the filesystem from some other Linux box and fix it.
Can anyone help me?