marcelotk15 / snake-os

Automatically exported from code.google.com/p/snake-os
0 stars 0 forks source link

Can't access device from telnet/ssh #248

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable ssh/telnet service on the device.
2. Connect from putty (or other client). Wait for user/password prompt, input 
user & password and receive "Access denied" message.
I tried both 'admin' and 'root' as user name and web interface password as the 
password.
3.

What is the expected output? What do you see instead?
Expected - system shell, instead I get "Access denied"

What version of the product are you using? On what operating system?
Version: SNAKE OS V1.3.2 (20111007)
Host OS: Windows 7

Please provide any additional information below.
Web interface, Samba share and other services work fine.

Original issue reported on code.google.com by yfabrik...@gmail.com on 28 Nov 2011 at 5:15

GoogleCodeExporter commented 8 years ago
I think the reason is a little bug in file /usr/share/www/cgi-bin/admin.cgi:

Incorrect code:
set_admin_password(){
...
    echo root:${1} | chpasswd --md5 > /dev/null                            
...
}

Correct code:
set_admin_password(){
...
    echo root:${1} | chpasswd -m > /dev/null                            
...
}

Here is a workaround: http://code.google.com/p/snake-os/issues/detail?id=213

Or use "snake" as SSH/Telnet password.

Original comment by batori.peter on 28 Nov 2011 at 6:35