Page 1 of 1

Add/change password for ftp

Posted: Mon Jun 25, 2012 10:45 am
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 ?

Re: Add/change password for ftp

Posted: Mon Jun 25, 2012 2:13 pm
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

Re: Add/change password for ftp

Posted: Tue Jun 26, 2012 6:28 am
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.

Re: Add/change password for ftp

Posted: Sat Jun 30, 2012 9:29 am
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 ?

Re: Add/change password for ftp

Posted: Sat Jun 30, 2012 10:00 am
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.

Re: Add/change password for ftp

Posted: Sat Jun 30, 2012 10:24 am
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.