1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Strange telnet/shh behavior?

Discussion in 'Tomato Firmware' started by Jeffrey Story, Feb 21, 2014.

  1. Jeffrey Story

    Jeffrey Story Reformed Router Member

    Recently install Tomato RAF Firmware v1.28.9013 MIPSR2-RAF-V1.2e K26 USB and until y-day telnet/ssh was working fine but now permissions seem completely hosed. All I get are . and permission denied. I'm not that exp with linux/unix cmds and just seem to be banging my head against the wall..

    [root@Media-Server /opt]$ ls
    [root@Media-Server /opt]$

    [root@Media-Server /opt]$ ls -l
    ?-------w- 0 16877 20 51539607719 Jan 1 1970 .

    [root@Media-Server /opt]$ cd Dlna
    [root@Media-Server Dlna]$ cd ..
    [root@Media-Server /opt]$ chmod -R 775 /Dlna
    chmod: /Dlna: No such file or directory
    [root@Media-Server /opt]$
  2. RMerlin

    RMerlin Network Guru Member

    Remove the leading slash there you just tried to chmod the folder as if it was at the root of the filesystem rather than as a subfolder or opt.
  3. koitsu

    koitsu Network Guru Member

    That filesystem also looks completely messed up. . (a.k.a. cwd) should not show up in ls -l for starters, the directory structure size is enormous (51,549,607,719 bytes, just for the dir structure? It's not even on an aligned boundary which makes it even more suspicious), the permissions are beyond wonky.

    I dunno what your /opt consists of (output from mount would have been useful), but to me it looks like it's horribly corrupt, or possibly the drive itself is. If this is a CIFS share or something similar, then something is broken somewhere, and badly. My guess is that this is the cause of all of your problems -- except your chmor -R 775 /Dlna attempt, which is a mistake as @RMerlin explained. But the rest of the issues I describe are an indicator of a corrupt filesystem or bad USB stick, card, or something along those lines.

    If this is a USB stick of some sort, you should simply partition and format the thing correctly and use ext2, ext3, or ext4. Don't bother with NTFS, FAT, etc.. Just trust me. If you need me to dig up the link here on the forum about how to properly partition and format the thing using fdisk + mkfs I can do so.

Share This Page