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

Problem logging in after Jac4 Upgrade

Discussion in 'Cisco/Linksys Network Storage Devices' started by PhillM, Mar 8, 2011.

  1. PhillM

    PhillM Networkin' Nut Member

    I installed the JJAC4 firmware for the first time tonight. After 5 minutes, I tried logging in with putty. none of the user accounts can log in. administrator was not set to root. Even if I go in under my account and change the password to root in the GUI, I can't get in thru putty. Of course I do not remember the administrator password, as I rarely use it.

    At this point, I am going to revert to the original firmware, but is there a reason why the administrator password didn't change to root?

    I know this doesn't quite follow the original thread, but my FTP access is down (it used to work) and I need to give clients access..

  2. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    The accounts that you use for the web GUI, FTP and file access can't be used for ssh, and vice versa. This is because the Linksys software which controls the web GUI, FTP and Samba configuration, uses the shell field in /etc/passwd for another purpose. Any user that can access ssh (or telnet) has to have a valid home directory and a valid shell (/bin/sh or /bin/ash) but for a user name to show up in the web interface they have to have their shell set to either /dev/null0 or /dev/null1.

    By default, there is only one user who can log in through ssh (or telnet) on my firmware, and that's root. The default password of root is "root". The root account is not the same as the admin account; in fact at the Linux level the admin account is just a regular user with no special access rights, whereas root has full access to everything your system can do.

    If you want other users besides root to be able to log in from ssh, you will have to add lines to the passwd file. I recommend making an alias in the /etc/passwd file of an existing web user so the passwords will match. For example, my /etc/passwd may have a line like this:
    I can create an alias account like this:
    As you can see, the alias account has a different user name and a valid home directory and a valid shell, but the password, user ID and group ID are the same as the jac account. That means if I log in as jacsh through ssh I get the same access rights as when I log in as jac through Samba, FTP or the web GUI.

    Remember if you make any changes to /etc/passwd, you will need to copy it to the configuration partition of the harddisk using cp /etc/passwd /harddisk/volume_1/conf (replace 1 by 3 if you're running a RAID configuration). If you don't do this, your changes will be lost when the NAS reboots.


Share This Page