Suse linux vsftp Configuration

Source: Internet
Author: User


Suse linux vsftp configuration as SUSE linux becomes more and more accepted by the majority of users, and problems gradually emerge. Today we are discussing how to use vsftp to build FTP in SUSE linux10.0, I hope this article will help you and you will learn how to use vsftp to build FTP in SUSE linux10.0. I. VSFTP installation vsftp installation method has 2, one for rpm installation, a source installation 1-1 rpm installation basic command: # rpm-ivh vsftpd-vsftpd-2.2.1. rpm can complete the installation of 1-2 source code installation basic commands: (the source code installation must ensure that gcc is installed before compilation, that is, make install command is not available) GCC installation: www.2cto.com check whether gcc is installed with the command: # rpm-qa | grep gcc. If there is version information, the GCC command has been installed on the CD: # yast2-I gcc VSFTP source code installation: # wget http://down1.chinaunix.net/distfiles/vsftpd-2.0.5.tar.gz # cp vsftpd-2.0.5.tar.gz/usr/src # tar-zxvf vsftpd-2.0.5.tar.gz # cd/usr/src /Vsftpd-2.0.5 # make install # cp/usr/src/vsftpd-2.0.5/vsftpd. conf/etc so far vsftpd installation is complete ~ Www.2cto.com two VSFTP startup settings vsftp startup mode is divided into 2, respectively for independent mode and xinetd mode, we generally adopt xinetd mode, this mode starts with the system startup, we will introduce the configuration of xinetd mode # vi/etc/xinetd. d/vsftpd modify the following items in the file: socket_type = stream disable = no # vi/etc/vsftpd. conf: Make sure that the # listen = YES in the file exists # chkconfig vsftpd on #/etc/init. d/xinetd start determine that xinetd runs three VSFTP Basic settings and directories when the machine starts. vsftp configuration is basically in vsftpd. in the conf configuration file, you only need to remove the # Above the related options, that is, to open the related options www.2cto.com, the following describes several basic options: # anonymous _ Enable = YES: whether anonymous access is allowed. Remove it. # If the code is not allowed, it means no access is allowed, similar to the following # local_enable = YES whether local users are allowed to access # write_enable = YES whether local users are allowed to read # local_umask = 022 the user mask is changed to 002 by default # anon_upload_enable = YES whether anonymous access is allowed user Upload File # anon_mkdir_write_enable = YES whether anonymous users are allowed to write the file # anon_world_readable_only = YES whether anonymous users are allowed to read-only files only have viewing and downloading permissions # userlist_deny = YES whether to enable user list # userlist_enable = YESYES indicates that the user name in the userlist_file file cannot be logged on. NO indicates that only user logon in the userlist_file file is allowed. # userlist_file =/etc/v Sftpd. user_list users store the file address local users wear and FTP basic structure to create under normal circumstances usr directory is allocated by default hard disk is the largest, we will use the USR directory to store FTP upload file address, the following is a basic configuration process where an anonymous user is allowed to download but has no other permissions. The local user has any permissions: the "/usr/share/empty" directory is required in the default configuration of VSFTPD. In the system, if the directory already exists, the mkdir command prompts accordingly. # Mkdir/usr/share/empty/mkdir: cannot create directory '/usr/share/empty': File exists www.2cto.com create an FTP directory under usr. As the FTP root directory # mkdir/usr/ftp # chown root. root/usr/ftp FTP root directory must be owned by root. Under the FTP directory, we create the upload directory to store uploaded files # mkdir/usr/ftp/upload # useradd-d/usr/ ftp/upload ftp Anonymous default account create local user name: ftpuser # useradd-d/usr/ftp/upload ftpuser # chmod og-w/usr/ftp/upload # chmod 777/usr/ftp/upload # chown ftpuser. ftp/usr/ftp/upload # passwd ftpuser after running, enter the password to restart VSFTP service xinetd restart.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.