Ups,
I setup wrong shell for root user.
Default is /bin/sh, and i want switch this to bash, installed bash but write /etc/passwd file:
root:… .. …/root:/bin/bash
Right shell line: /opt/bin/bash no i cannot login root, and sudoers not set, what i can do?
i see backup file: /etc/passwd~ and there is working /bin/sh shell, can i restore this?
How i can edit /etc/passwd file WITHOUT root access ?
Or how i can setup ssh access again, if this is set root password and shell to default ?
HELP ME PLEASE!
Can i take HDD out and mount partition another pc and edit file?
WD MyBook World Edition (WhiteLight) 1tb
uname -a
Linux WD 2.6.24.4 #1 Thu Apr 1 16:43:58 CST 2010 armv5tejl unknown
cat /etc/model
WWLXN
or can i edit some startup files, and write these skript which restore my passwd~ to passwd
startupfiles like:
/etc/init.d/SxxAddBackupToPasswd.php.