^_^ first ^_^:- i take backup :-) cp /etc/vsftpd.conf /etc/vsftpd.conf.0 and also cp /etc/inetd.conf /etc/inetd.conf.0 ^_^ second ^_^ :- edit and comment ftp user to allow anonymous FTP vim /etc/ftpusers # # ftpusers This file describes the names of the users that may # _*NOT*_ log into the system via the FTP server. # This usually includes "root", "uucp", "news" and the # like, because those users have too much power to be # allowed to do "just" FTP... # # # Version: @(#)/etc/ftpusers 3.00 02/25/2001 volkerdi # # Original Author: Fred N. van Kempen, # # The entire line gets matched, so no comments or extra characters on # lines containing a username. # # To enable anonymous FTP, remove the "ftp" user: #ftp root uucp news # End of ftpusers. ^_^ third ^_^ :- edit vim /etc/vsftpd.conf # Example config file /etc/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS: This example file is NOT an exhaustive list of vsftpd options. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's # capabilities. # # Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=YES # # Uncomment this to allow local users to log in. #local_enable=YES # # Uncomment this to enable any form of FTP write command. #write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) local_umask=022 # # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. #anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # Activate logging of uploads/downloads. xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES # # If you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using "root" for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # You may override where the log file goes if you like. The default is shown # below. xferlog_file=/var/log/vsftpd.log # # If you want, you can have your log file in standard ftpd xferlog format. # Note that the default log file location is /var/log/xferlog in this case. xferlog_std_format=YES # # You may change the default value for timing out an idle session. #idle_session_timeout=600 # # You may change the default value for timing out a data connection. #data_connection_timeout=120 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # Enable this and the server will recognise asynchronous ABOR requests. Not # recommended for security (the code is non-trivial). Not enabling it, # however, may confuse older FTP clients. #async_abor_enable=YES # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # Beware that on some FTP servers, ASCII support allows a denial of service # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd # predicted this attack and has always been safe, reporting the size of the # raw file. # ASCII mangling is a horrible feature of the protocol. #ascii_upload_enable=YES #ascii_download_enable=YES # # You may fully customise the login banner string: ftpd_banner=Welcome to ftp.engms.name.eg FTP service. # # You may specify a file of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows) #banned_email_file=/etc/vsftpd.banned_emails # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd.chroot_list # # You may activate the "-R" option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume # the presence of the "-R" option, so there is a strong case for enabling it. ls_recurse_enable=YES # # When "listen" directive is enabled, vsftpd runs in standalone mode (rather # than from inetd) and listens on IPv4 sockets. To use vsftpd in standalone # mode rather than with inetd, either change the line below to 'listen=YES' # or comment it out. This directive cannot be used in conjunction with the # listen_ipv6 directive. listen=NO # # This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 # sockets, you must run two copies of vsftpd whith two configuration files. # Make sure, that one of the listen options is commented !! #listen_ipv6=YES # # #### add by engms #### anon_max_rate=131072 max_clients=25 max_per_ip=3 message_file=welcome.msg # vsftpd will work via super server inetd with :- a- Allow anonymous FTP read only b- ftpd_banner to prevent show daemon version number and show my ftp name :-) c- allow logging all events d- some limitation max users in the same time and from the same IP and max download speed 128kb/s ^_^ forth ^_^ :- edit inetd to enable vsftpd { and closed time } vim /etc/inetd.conf # See "man 8 inetd" for more information. # # If you make changes to this file, either reboot your machine or send the # inetd a HUP signal: # Do a "ps x" as root and look up the pid of inetd. Then do a # "kill -HUP ". # The inetd will re-read this file whenever it gets that signal. # # # # The first 4 services are really only used for debugging purposes, so # we comment them out since they can otherwise be used for some nasty # denial-of-service attacks. If you need them, uncomment them. # echo stream tcp nowait root internal # echo dgram udp wait root internal # discard stream tcp nowait root internal # discard dgram udp wait root internal # daytime stream tcp nowait root internal # daytime dgram udp wait root internal # chargen stream tcp nowait root internal # chargen dgram udp wait root internal #time stream tcp nowait root internal #time dgram udp wait root internal # # These are standard services: # # Very Secure File Transfer Protocol (FTP) server. ftp stream tcp nowait root /usr/sbin/tcpd vsftpd # # Professional File Transfer Protocol (FTP) server. #ftp stream tcp nowait root /usr/sbin/tcpd proftpd # # Telnet server: #telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd # # The comsat daemon notifies the user of new mail when biff is set to y: comsat dgram udp wait root /usr/sbin/tcpd in.comsat # # Shell, login, exec and talk are BSD protocols # #shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L #login stream tcp nowait root /usr/sbin/tcpd in.rlogind # exec stream tcp nowait root /usr/sbin/tcpd in.rexecd # talk dgram udp wait root /usr/sbin/tcpd in.talkd #ntalk dgram udp wait root /usr/sbin/tcpd in.talkd # # To use the talk daemons from KDE, comment the talk and ntalk lines above # and uncomment the ones below: # talk dgram udp wait root /usr/sbin/tcpd /usr/bin/kotalkd # ntalk dgram udp wait root /usr/sbin/tcpd /usr/bin/ktalkd # # Kerberos authenticated services # # klogin stream tcp nowait root /usr/sbin/tcpd rlogind -k # eklogin stream tcp nowait root /usr/sbin/tcpd rlogind -k -x # kshell stream tcp nowait root /usr/sbin/tcpd rshd -k # # Services run ONLY on the Kerberos server # # krbupdate stream tcp nowait root /usr/sbin/tcpd registerd # kpasswd stream tcp nowait root /usr/sbin/tcpd kpasswdd # # POP and IMAP mail servers # # Post Office Protocol version 3 (POP3) server: #pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/popa3d # Internet Message Access Protocol (IMAP) server: #imap2 stream tcp nowait root /usr/sbin/tcpd imapd # # The Internet Unix to Unix copy (UUCP) service: # uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/lib/uucp/uucico -l # # Tftp service is provided primarily for booting. Most sites # run this only on machines acting as "boot servers." # tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot -r blksize # # Internet Bootstrap Protocol (BOOTP) server: # bootps dgram udp wait root /usr/sbin/bootpd bootpd # # Finger, systat and netstat give out user information which may be # valuable to potential "system crackers." Many sites choose to disable # some or all of these services to improve security. # Try "telnet localhost systat" and "telnet localhost netstat" to see that # information yourself! #finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd -u # systat stream tcp nowait nobody /usr/sbin/tcpd /bin/ps -auwwx # netstat stream tcp nowait root /usr/sbin/tcpd /bin/netstat -a # # Ident service is used for net authentication auth stream tcp wait root /usr/sbin/in.identd in.identd # # These are to start Samba, an smb server that can export filesystems to # Pathworks, Lanmanager for DOS, Windows for Workgroups, Windows95, Lanmanager # for Windows, Lanmanager for OS/2, Windows NT, etc. # If you're running smbd and nmbd as daemons in /etc/rc.d/rc.samba, then you # shouldn't uncomment these lines. #netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd #netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd # #Samba Web Administration Tool: #swat stream tcp nowait.400 root /usr/sbin/swat swat # # Sun-RPC based services. # # rstatd/1-3 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rstatd # rusersd/2-3 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rusersd # walld/1 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rwalld # # End of inetd.conf. ^_^ fifth ^_^ :- restart super server /usr/sbin/inetd restart and also /usr/sbin/tcpd restart ^_^ 6 ^_^ try to check and use the ftp service bash-3.1$ telnet localhost 21 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused bash-3.1$ ftp localhost ftp: connect: Connection refused ftp> exit bash-3.1$nmap localhost Starting Nmap 5.00 ( http://nmap.org ) at 2009-10-06 19:58 EET Interesting ports on localhost (127.0.0.1): Not shown: 996 closed ports PORT STATE SERVICE 22/tcp open ssh 37/tcp open time 113/tcp open auth 6000/tcp open X11 Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds lynx ftp://192.168.1.3 Looking up 192.168.1.3 Making FTP connection to 192.168.1.3 Alert!: Unable to connect to FTP host. Looking up 192.168.1.3 Making FTP connection to 192.168.1.3 Alert!: Unable to connect to FTP host. Can't Access `ftp://192.168.1.3/' Alert!: Unable to access document. lynx: Can't access startfile ftp still not work :-( what is the missing steps to get vsftp work properly ? I want to use slackware as server ( insted of CentOS ) not just as desktop on my laptop In other distro like CentOS which i use in my server ( in fact ordinary PC ) We can start , stop $ restart services via command service vsftpd start|status|restart|stop /etc/inet.d/vsftpd start|status|restart|stop And to make service run on boot time not just on the fly chkconfig vsftpd on then to ensure the result chkconfig --list vsftpd I want to learn more about slackware method :-) How can i gain knowledge in slackware way ? what is the suitable rod and tutorials ?