Results 1 to 6 of 6

Thread: /etc/passwd problem

  1. #1

    /etc/passwd problem

    after installing the custom firmware, i followed kfurge's instructions saying

    "Modify /etc/passed to make /opt/bin/bash your login shell and /opt/home/<username> your home directory (vi /etc/passwd)"

    neither vi nor nano worked very well from the telnet session, and i somehow messed up etc/passwd so that when i try to log in via telnet, i get

    "(none) login: root

    login: cannot run /bin/sh : No such file or directory

    Connection to host lost"



    any advice?

  2. #2
    in hopes that someone can help, but didnt notice this post as far down on the list as it was, i'm replying to myself to bump the post up the list

  3. #3
    You might try temporarialy switching from user based access mode (UBSA) to password based access mode (PBSA) then restart the router. Get there via Advanced Settings -> Share Management -> Windows Setting.

    I believe that when the router is in PBSA mode it uses a temporary password in /tmp/passwd which is created fresh during boot-up. This should allow you back in to fix or delete your old passwd file.

    Be aware, though, there are some threads that indicate switching modes like this can mess up your router enough to require a complete wipe of nvram. Details on how to do this can be found on this forum.

    - K.C.

  4. #4
    switching access modes worked perfectly.
    i found a freeware telnet client that works with vi and nano much better than XP's built in one, and everything is working now.


    Thanks, kfurge!

  5. #5
    For me switching access modes worked well too.

    editing /etc/passwd with nano not with vi caused the error at the root login.

  6. #6
    Join Date
    Apr 2006
    Location
    Heesch, Netherlands
    Posts
    118
    Quote Originally Posted by nap View Post
    For me switching access modes worked well too.

    editing /etc/passwd with nano not with vi caused the error at the root login.
    You should use nano with -m option t avoid word-wrap issues.

Similar Threads

  1. /etc/passwd problem!!!
    By sollie in forum WL-700g Firmware Discussion
    Replies: 2
    Last Post: 06-01-2007, 17:11
  2. WL-500gP and Asus support experience
    By Blezi in forum WL-500gP Q&A
    Replies: 6
    Last Post: 03-12-2006, 13:59
  3. Problem with dieing AIR-connection
    By BòóN in forum WL-500g Q&A
    Replies: 7
    Last Post: 26-10-2004, 13:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •