Difference between revisions of "Set up an ftp server"

From Linuxintro
imported>ThorstenStaerk
(New page: = SLES 11 SP 1 = yast -i vsftpd /etc/init.d/vsftpd start)
 
imported>ThorstenStaerk
 
Line 1: Line 1:
 +
There is a multitude of ftp servers that you can run, Pro-FTP, WS-FTP, VS-FTP and so on. Just do not confuse them with TFTP which is another protocol. In this article we will install an FTP server.
 +
 
= SLES 11 SP 1 =
 
= SLES 11 SP 1 =
 +
* Install the software
 
  yast -i vsftpd
 
  yast -i vsftpd
 +
* Start it
 
  /etc/init.d/vsftpd start
 
  /etc/init.d/vsftpd start
 +
* Make start when booting
 +
chkconfig vsftpd on
 +
* enable all operating system users of the local computer to log in to ftp
 +
: Edit /etc/vsftpd.conf, set the line
 +
local_enable=YES
 +
* restart the service to make sure the configuration is used
 +
/etc/init.d/vsftpd restart
 +
* verify the ftp port is open
 +
# nmap localhost
 +
 +
Starting Nmap 4.75 ( http://nmap.org ) at 2010-12-09 02:46 EST
 +
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
 +
Interesting ports on localhost (127.0.0.1):
 +
Not shown: 989 closed ports
 +
PORT    STATE SERVICE
 +
21/tcp  open  ftp
 +
[...]

Latest revision as of 07:47, 9 December 2010

There is a multitude of ftp servers that you can run, Pro-FTP, WS-FTP, VS-FTP and so on. Just do not confuse them with TFTP which is another protocol. In this article we will install an FTP server.

SLES 11 SP 1

  • Install the software
yast -i vsftpd
  • Start it
/etc/init.d/vsftpd start
  • Make start when booting
chkconfig vsftpd on
  • enable all operating system users of the local computer to log in to ftp
Edit /etc/vsftpd.conf, set the line
local_enable=YES
  • restart the service to make sure the configuration is used
/etc/init.d/vsftpd restart
  • verify the ftp port is open
# nmap localhost

Starting Nmap 4.75 ( http://nmap.org ) at 2010-12-09 02:46 EST
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
Interesting ports on localhost (127.0.0.1):
Not shown: 989 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
[...]