On 2013-12-12 22:53, Carlos E. R. wrote:
> On 2013-12-12 14:36, qdsk wrote:
>
>>
>> I wanted to connect via ftp my desk computer (OpenSUSE) with my OS X
>> laptop, and I saw at the web that it was needed an FTP server that was
>> not already installed, so I did everything on the website that I posted
>
> It as simple as running the FTP module in YaST. Maybe you have to
> install that module first. I currently can not test it to write here the
> details, later.
Ok, I can now test the procedure on a virtual machine running 13.1.
First, install this module:
yast2-ftp-server - YaST2 - FTP configuration
Once installed, restart yast, if you used it for install. Choose the
module “FTP server” in the “Network services” section of yast.
You probably get a dialog prompting you to choose an FTP server, from
vsftp or pure-ftp. I choose the first one (default). It automatically
installs it.
Now you see a dialog.
First entry is about choosing when to start up the service - choose
xinetd, unless you are setting up a very busy FTP server, full time, in
which case a daemon might be better.
However, with systemd socket triggering, the difference might be futile.
Choose another section on the left side. It might ask to start xinetd,
accept.
Notice that the default FTP directory for anonymous users is “/srv/ftp”
(general section). You can also set the default umasks, or leave it as
it is (blank). Do not use chroot now, leave it for later if you wish.
The important choice now may be on “authentication”. If you want to
share home, you need “authenticated”. Or leave “both” if you wish.
Don’t forget to open port on firewall on the “expert settings” section.
When happy, just click on accept.
There is also a help button.
Test it:
cer@Telcontar:~> ftp 192.168.74.119
Connected to 192.168.74.119.
500 OOPS: could not bind listening IPv4 socket
ftp>
Ok, bug in configurator. You need:
listen=NO
I put that after the PAM section in “/etc/vsftpd.conf”.
Test it:
cer@Telcontar:~> ftp 192.168.74.119
Connected to 192.168.74.119.
220 Welcome to number four
Name (192.168.74.119:cer): cer
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (|||30063|).
150 Here comes the directory listing.
drwxr-xr-x 2 1000 100 4096 Oct 19 17:08 Desktop
drwxr-xr-x 2 1000 100 4096 Oct 19 17:08 Documents
drwxr-xr-x 2 1000 100 4096 Oct 19 17:08 Downloads
drwxr-xr-x 2 1000 100 4096 Oct 19 17:08 Music
drwxr-xr-x 2 1000 100 4096 Oct 19 17:08 Pictures
drwxr-xr-x 2 1000 100 4096 Oct 19 17:08 Public
drwxr-xr-x 2 1000 100 4096 Oct 19 17:08 Templates
drwxr-xr-x 2 1000 100 4096 Oct 19 17:08 Videos
drwxr-xr-x 2 1000 100 4096 Oct 22 11:57 bin
-rw-r--r-- 1 1000 100 8 Dec 07 23:48
dificultcharsinvmware.txt
drwxr-xr-x 2 1000 100 4096 Oct 19 18:49 public_html
-rw-r--r-- 1 1000 100 100000 Oct 21 10:29 sample
226 Directory send OK.
ftp>
That’s my home directory on the virtual machine, so it is working.
Lets try anonymous. First I prepare a file:
Eleanor4:~ # echo "En un lugar de La Mancha" > /srv/ftp/El_Quijote.txt
Eleanor4:~ #
Then I try from “outside”:
cer@Telcontar:~> ftp anonymous@192.168.74.119
Connected to 192.168.74.119.
220 Welcome to number four
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (|||30048|).
150 Here comes the directory listing.
-rw-r--r-- 1 0 0 25 Dec 13 21:17 El_Quijote.txt
226 Directory send OK.
ftp> get El_Quijote.txt
local: El_Quijote.txt remote: El_Quijote.txt
229 Entering Extended Passive Mode (|||30090|).
150 Opening BINARY mode data connection for El_Quijote.txt (25 bytes).
100% |**************************| 25 659.83 KB/s 00:00 ETA
226 Transfer complete.
25 bytes received in 00:00 (90.75 KB/s)
ftp>
ftp> bye
221 Goodbye.
cer@Telcontar:~> cat El_Quijote.txt
En un lugar de La Mancha
cer@Telcontar:~>
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)