Troubles with permissions on stock firmware

I have Merkusys mr90x on which Im trying to install OpenWRT with U-Boot layout. When trying to check telnet running via netstat -ltunp` I getting following error:

netstat: can't scan /proc - are you root?

I've checked permissions of the admin user:

admin@Akronite:/root$ cat /etc/passwd
root:x:0:0:root:/root:/bin/ash
sftpadmin:x:1001:0:sftpadmin:/var:/bin/false
visit::2001:65534:visit:/var:/bin/false
daemon:*:1:1:daemon:/var:/bin/false
ftp:*:55:55:ftp:/home/ftp:/bin/false
network:*:101:101:network:/var:/bin/false
nobody:*:65534:65534:nobody:/var:/bin/false
admin:x:1000:0:admin:/var:/bin/false
guest::2000:65534:guest:/var:/bin/false

And seems like admin user have required permissions, but still can not scan /proc.
Also I noticed that:

  1. When connecting via SSH admin password not required, despite it was set in gui;
  2. Telnet is not starting after I added telnetd -l /bin/login.sh into /bin/sh, switched IPTV/VLAN, and tried to connect via client.

Am i missing something?
Thanks a lot.

The wiki states you have to login as user "root" and not "admin". Beside that admin user is not allowed to use the shell at all. The error message is even asking the right question: "are you root?"

  1. Login as root via SSH (router IP, port 20001 , password - your web interface password)

Beside that: check the correct revison of your device' hardware first before doing anything. The cheap china devices change quite often their hardware components.

1 Like

Thank you for your help, but I just solved my problem. I installed OpenWRT via UART. I think I have broken something in firmware during previous attempt. Now my device works fine!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.