Hi people. Some months ago I adjusted my FB 7141 to use different ftp-logins for different folders on my USB-drive.
This weekend I got troubles with FB and got new one from AVM. Now I tried to do the same modification, but it doesn't work.
Here is my script. If I execute it in telnet, it works. When I put it to debug.cfg, /var/tmp/passwd file contains finally wrong lines- not what I wrote to it in debug.cfg
Here is my script:
When I open passwd file after FB is booted up, I see following content:
I suppose this password for root comes from FB settings.
What I'm doing wrong?
This weekend I got troubles with FB and got new one from AVM. Now I tried to do the same modification, but it doesn't work.
Here is my script. If I execute it in telnet, it works. When I put it to debug.cfg, /var/tmp/passwd file contains finally wrong lines- not what I wrote to it in debug.cfg
Here is my script:
Code:
/usr/sbin/telnetd -l /sbin/ar7login
rm /var/tmp/passwd
echo root:x:0:0:root:/:/bin/sh >> /var/tmp/passwd
echo ftpuser:74zgGT7hzpXZE:1000:0:protected ftp user:/var/media/ftp/ROOT/ftp_public:/bin/sh >> /var/tmp/passwd
echo superftpuser:jK8cN7OAkEtxk:1000:0:protected ftp user:/var/media/ftp/ROOT/ftp_public/public:/bin/sh >> /var/tmp/passwd
echo admin:UeaR1LKgFmWhU:1000:0:protected ftp user:/var/media/ftp/ROOT:/bin/sh >> /var/tmp/passwd
When I open passwd file after FB is booted up, I see following content:
Code:
root:x:0:0:root:/:/bin/sh
ftpuser:tqWBnFwD8stfE:1000:0:protected ftp user:/var/media/ftp:/bin/sh
~
What I'm doing wrong?