Add/change password for ftp

Here for general support for D series TVs, request and problem solve area.
Post Reply

trex2000
Posts: 70
Joined: Thu Nov 17, 2011 1:54 pm

Add/change password for ftp

Post by trex2000 »

Hello.
Is there a way to change the user and set a password to the ftp access ?
Under what user is running the ftp client ?
More than that, what ftp server is it running ? vsftpd or proftpd ? Or some custom one ?
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Add/change password for ftp

Post by arris69 »

trex2000 wrote:Hello.
Is there a way to change the user and set a password to the ftp access ?
just guessed

Code: Select all

passwd
on arhitecture where it's supported
Under what user is running the ftp client ?
on samsung tvs there is just 1 user
More than that, what ftp server is it running ? vsftpd or proftpd ? Or some custom one ?
vsftpd or busybox depends on architecture.

look into

Code: Select all

<widgetinstalldir_read_in_wiki>SamyGO/etc/init.d
directory
trex2000
Posts: 70
Joined: Thu Nov 17, 2011 1:54 pm

Re: Add/change password for ftp

Post by trex2000 »

So, from what I understood, there is only one user, which I suppose is root.
Indeed, passwd will change the password, but won't this affect some other functionality ? I guess not as if everything runs under the root account then there's no need to supply password...

Thanks for the infos, I'll try it at home.
trex2000
Posts: 70
Joined: Thu Nov 17, 2011 1:54 pm

Re: Add/change password for ftp

Post by trex2000 »

So, i've changed the root password by connecting with netcat, however the ftp server was still not asking for password.
I've started digging into the init scripts and found the following line :

Code: Select all

$SYSROOT/bin/busybox tcpsvd -vE 0.0.0.0 21 $SYSROOT/bin/busybox ftpd -w / &
inside the

Code: Select all

01_01_catch_crap.init

script file.

So this is where busybox is started.
I've started reading the busybox documentation, I suppose busybox is not using the /etc/passwd file, it will just let anonymous login to anybody ..

Any thoughts, help ?
User avatar
juusso
SamyGO Moderator
Posts: 10128
Joined: Sun Mar 07, 2010 6:20 pm

Re: Add/change password for ftp

Post by juusso »

to console:

Code: Select all

passwd
then when asked:

Code: Select all

Enter new UNIX password:
Retype new UNIX password:
enter new password twice. After the procedure

Code: Select all

passwd: password updated successfully
you get new password for your ssh/ftp connection.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
trex2000
Posts: 70
Joined: Thu Nov 17, 2011 1:54 pm

Re: Add/change password for ftp

Post by trex2000 »

No, you don't.
FTP is served on the UEXXD6000 on which I run Samygo by busybox.
Meanwhile I found that busybox's FTP server allows only anonymous access, so anybody can login with any password.
Therefore, even if you change with passwd , the ftp access will be unlimited.
Is there any alternative ftp server compiled for it, like vsftpd ?

Currently there's no 'public' access to the server, it's behind the firewall, and I can have remote access to it either from local network or remotely via VPN connection to the local network. However, file transfer through vpn is slower, therefore I would have prefered a strait ftp connection.

Post Reply

Return to “[D] Support”