vsftpd

Hello All:

I have VSFTPD running on openSUSE 13.1 and everything is running OK. Except when users click on the link ftp.blabla.com and it open with Internet Explorer and it open the root of the server, not the home of the user.

Here is my config file, please advise.

zypper in vsftpd

systemctl enable vsftpd.service

systemctl start vsftpd.service

mkdir /srv/ftp

groupadd ftp-users

useradd -g ftp-users -d /srv/ftp/ test

passwd test

chmod 750 /srv/ftp/

chown test:ftp-users /srv/ftp/

vi /etc/vsftpd.conf

write_enable=YES
ftpd_banner=Welcome to TEST FTP service.
local_enable=YES
anonymous_enable=NO
use_localtime=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

#vi /etc/vsftpd.chroot_list
added test

systemctl restart vsftpd.service

Thanks

On 2014-10-01 01:56, smeadmin wrote:
>
> # zypper in vsftpd
>
> # systemctl enable vsftpd.service

Another comment: When pasting here computer commands and such, please
use a CODE BLOCK, so that the forum software doesn’t do silly things
like converting URLS to tiny urls or otherwise hide or alter the
commands you entered. You get them by clicking on the ‘#’ button in the
forum editor. http://susepaste.org/images/15093674.jpg


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

On 2014-10-01 01:56, smeadmin wrote:
>
> Hello All:
>
> I have VSFTPD running on openSUSE 13.1 and everything is running OK.
> Except when users click on the link ftp.blabla.com and it open with
> Internet Explorer and it open the root of the server, not the home of
> the user.
>
> Here is my config file, please advise.


> # zypper in vsftpd
>
> # systemctl enable vsftpd.service
> # systemctl start vsftpd.service
>
> # mkdir /srv/ftp
>
> # groupadd ftp-users
>
> # useradd -g ftp-users -d /srv/ftp/ test
>
> # passwd test
>
> # chmod 750 /srv/ftp/
> # chown test:ftp-users /srv/ftp/
>
> # vi /etc/vsftpd.conf
> write_enable=YES
> ftpd_banner=Welcome to TEST FTP service.
> local_enable=YES
> anonymous_enable=NO
> use_localtime=YES
> chroot_local_user=YES
> chroot_list_enable=YES
> chroot_list_file=/etc/vsftpd.chroot_list
>
> #vi /etc/vsftpd.chroot_list
> added test
>
> # systemctl restart vsftpd.service

And what home did you define for the “test” user? Because I think that’s the one that will be used.
If there is none, you might get “/”.

Then, you should first test ftp on localhost, with plain “ftp”, not with internet explorer.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

Skimming the openSUSE SDB for FTP, although very old to my eye it’s probably still usable…
https://en.opensuse.org/SDB:FTP_server

But, before you do that, I highly recommend you first try the YAST FTPD applet, if you don’t see it in YAST install

zypper in yast2-ftp-server

IIRC the YAST ftp configuration applet should support vsftpd, and with that tool you should get yourself setup most completely and correctly in the most common way.

TSU