Bekijk de volledige versie : Is it possible to create more than 32 users for FTP?
I use next FW and setup on my WL-500g:
FW: Oleg 1.9.2.7-6b
External HDD Case:
Sum Vision (Aluminium Mobile Enclosure)USB chip Genesys GL811
HDD Maxtor 160GB 7200rpm (FAT32 formated)
I have already 32 users on the routers FTP setup, but i need to add more users.
When i add 33th user i get a warning error telling next:
http://www.p0ppa.info/data/max32userserror.gif
Is it possible to increase this more than 32 users?
Ok,
I read couple posts and decided to make my own stupid-ftpd.conf and added more users to it.
The custom stupid-ftpd.conf is now in /tmp/local after this i checked the custom config file and it was ok.
After that i added code to my post-boot and my post-boot looks like this:
#!/bin/sh
dropbear
i=0
while [ $i -le 30 ]; do
if [ -e /tmp/stupid-ftpd.conf ] ; then
killall stupid-ftpd
cp /tmp/local/stupid-ftpd.conf /tmp/stupid-ftpd.conf
stupid-ftpd
break
fi
sleep 1
: $((i = $i + 1 ))
and than i did:
flashfs save
flashfs commit
flashfs enable
reboot
But when i try to connect to the FTP with users i added it wont allow to access, all other users before the edit are still working.
So i checked the post-boot to see if everything still there and it was just like i made it.
I have also disabled FTP in web interface but than FTP didnt work at all.
Can plz someone help me out here, i cant see what i am doing wrong.
Could anyone help me with this?
I still didnt find a way to add more than 32 users, no matter what i did. :(
I don't know how to define more than 32 user with stupid-ftpd, but maybe you can avoid this limitation by using vsftpd (http://www.macsat.com/vsftpdGuide.php) ? (I don't know if there is a number of user limitation with vsftpd)
I have looked into vsftpd and my biggest problem is my FAT32 partitioned HD and it is 27% full, to install vsftpd i need linux partitioned HD for better performance.
I am happy with stupid-ftpd so the best option would be changing config so i can still run same system without a lot work.
I use also same drive as Samba drive.
Ok,
The limitation is in the general.js which is used on web interface, is there any way i can change this file from shell, or change it on my pc and replace it on the router with shell?
The general.js is here:
http://192.168.1.1/general.js
anyone? Oleg?
Ok,
The limitation is in the general.js which is used on web interface, is there any way i can change this file from shell, or change it on my pc and replace it on the router with shell?
The general.js is here:
http://192.168.1.1/general.js
anyone? Oleg?
I'm wonder, why do you need more than 32 users? :) Anyway, it's more then just web interface limitation, it's also harcoded in the firmware and most likely the reason for that is to avoid mess in the nvram. Or it's just stupid-ftpd limitation - I've not checked on this yet. Perhaps one day I will look into that...
Hi Oleg thanks for the reply.
I was able to add 7 more accounts and all accounts work now (older accounts too) i got 39 accounts.
It was web interface limitation and not stupid-ftpd or somethin else.
The way i did was not so clean but it works.
I saved compleet http://192.168.1.1/Advanced_USBStorage_Content.asp on my PC. including the general.js file.
I open the WL500g Web Manager.htm with my text editor and edited line with:
<FORM name=form action=apply.cgi method=get>
to
<FORM name=form action=http://192.168.1.1/apply.cgi method=get>
Than i opened general.js file and edited line
if (document.form.usb_ftpnum_x_0.value >= c) cFlag=1;
to
if (document.form.usb_ftpnum_x_0.value >= c) cFlag=0;
After saving these files i opened WL500g Web Manager.htm from my PC and add all 7 users one by one, after that i opened the real router web interface, all accounts i added where there so i rebooted the router and test all accounts one by one (also older accounts) everything was working fine.
I hope you can use the info, i am not that good in linux, but thanks to my litle perl and html and java knowledge i could make it work this way.
I'm intrested in changing general.js too, because display of command button (like "finish" or "apply") suxx under windows XP when you rollover it.
I have localised the line that I want to change in the file (in order to disable javascript rollover), but like spawn I don't know how to save the change on the router.
Is it possible to do this ?
It's possible to alter general.js this way:
Copy it to /usr/local/www (create this dir before copy), then add this line to pre-boot
mount -obind /usr/local/www/general.js /www/general.js
Save to flashfs and enable it. Be sure to add #!/bin/sh as the first line in the pre-boot.
Thanks Oleg!
I didnt have a pre-boot so i created one in /usr/local/sbin/ and did exactly as you said and it works perfectly now.
No need to add users the way i did first time it goes directly from the web interface :)