

The bad news is they have syntax quirks which you must learn to make them work. Make this script executable: "chmod 700 startup.Our familiar old file-copying friends SSH, SCP, and Rsync are all IPv6-ready, which is the good news. NOTE4: Home dir have to be "/tmp" for usersĥ.

NOTE3: You can choose if newuser should have root or user rights by 0 (root) or 1 (user) for ex.: You can verify this string by typing to commandline "echo " and verify it. NOTE2: Hash string MUST BE ALTERNED ROOT HASH STRING listed before as following: every special character have to had "\" before it self for ex: "$" have to be replaced with " \$", "\" should be" \\". NOTE1: "newuser" could be replaced with any other username. Create startup script: vi /jffs/etc/script.startup pres "i" and enter: "echo newuser: \$1 \$nXi1yWDP \$IlyqqOVj0grwQjw0EhS6I \\: 0:0:NewUser,: /tmp:/bin/sh > /tmp/etc/passwd" press and ":wq"
#Dropbear ssh scp password
from this content copy password hash root: $1$nXi1yWDP$IlyqqOVj0grwQjw0EhS6I/:0:0:Root User,:/tmp/root:/bin/shĤ. list content of /tmp/etc/passwd (for ex.: cat /tmp/etc/passwd)ģ. Change your password to the password which should be used as newuser password (Web>Administration>router password )Ģ. Requirement: JFFS available (enabled and formated)ġ. I'm here again with a bit more comfortable solution regarding multi user SSH connection with root or user rights: Posted: Fri 15:52 Post subject: DD-WRT Mutli-user SSH comfortable solution So, next steps to check how to, if possible, lessen their rights (not root), and get proper environment to get them out of /root, but still to able to use LFS.Īny constructive comments and ideas are welcomed. Changing their home directory to any other, immediately causes, they loose LFS support. Such created users, as described here, all have root privileges. Remember MD5 crypt password for this new user, you can get from ProFTPD /tmp/proftpd/etc/passwd file.Īnd after rebooting the router, voila, I have new users with their own independent passwords, to access SSH/SCP/dropbear.Īs I have mentioned before, I am not a NIX guru, so I still have environment issues. I have rem'ed parts inserting users and root passwords, and added my users:Įcho 'YOUR-NEW-USER:$1$USER-MD5-crypt-password:0:0:Root User,:/tmp/root:/bin/sh' >/etc/passwd This script sits in /opt/etc/init.d directory and is called: S01bashAsShell. Another very handy tool, turned out to be frater's OPTWARE init.d script for inserting ProFTPD created users and MD5 crypt passwords into /etc/passwd file, during routers boot. (Note: using tools to modify /tmp/etc/passwd file will render it being overwritten, and users and passwords missing & pretty much unusable in this modified form).Ģ. Here comes nice & handy ProFTPD dd-wrt GUI feature of creating and accepting both plain-text and MD5 crypt passwords, and saving them as MD5 crypt in /tmp/proftpd/etc/passwd file. OPTWARE installed and running, for documentation see: and Īdditional OPTWARE ProFTPD for Large File System (LFS) support (missing in original dd-wrt installation) and OPTWARE dropbear.ġ. Note: this is for OPTWARE environment (it will probably NOT work with plain vanilla dd-wrt).Ĭurrent firmware: dd-wrt.v24-13575_NEWD-2_K2.6_big.bin, I am not a NIX guru, thus, some steps here might seem unnecessary, however, this was the only way I was able to accomplish this task. However, now I can shout "Eureka"-Yes, it is possible for SSH/SCP/dropbear, too. Until now, it appeared to be impossible for SSH/SCP/dropbear (it was possible for FTP, Samba, etc, but these applications have their own configurations and passwords managements). Posted: Mon 17:29 Post subject: SSH/SCP/Dropbear multi-user, multi-password-It Can Be Doneįor quite a while, I was trying to get SSH/SCP/Dropbear multi-user, multi-password dd-wrt connectivity.
