In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
SUSE linux10.0 how to use vsftp to build FTP, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
As SUSE linux is more and more accepted by the majority of users, and the accompanying problems gradually appear, what we are discussing today is to build FTP with vsftp under SUSE linux10.0.
One. VSFTP installation
There are two ways to install vsftp, one is rpm installation and the other is source code installation
1-1 basic rpm installation commands:
# rpm-ivh vsftpd-vsftpd-2.2.1 .rpm can complete the installation
1-2 basic command for source code installation: (source code installation must ensure that gcc is installed before compilation, that is, when the make make install command cannot be used)
GCC installation:
Check whether gcc is installed. Command: # rpm-qa | grep gcc. If there is version information, it has been installed.
CD-ROM installation GCC command: # 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
# make install
# cp / usr/src/vsftpd-2.0.5/vsftpd.conf / etc
Vsftpd installation is complete at this point.
Two VSFTP startup settings
Vsftp startup mode is divided into 2 modes, which are standalone mode and xinetd mode respectively.
Generally speaking, we adopt xinetd mode, which starts with the startup of the system, so we will introduce the configuration of xinetd mode.
# vi / etc/xinetd.d/vsftpd
Modify the following items in the file as follows:
Socket_type = stream disable = no is fine
# vi / etc/vsftpd.conf
Make sure that the # preceding the # listen=YES in this file exists
# chkconfig vsftpd on
# / etc/init.d/xinetd start determines that xinetd runs when the machine starts
3. Basic VSFTP settings and directory construction
The vsftp configuration is basically in the vsftpd.conf configuration file. As long as the # in front of the relevant options is removed, the relevant options will be opened.
Here are a few basic selections:
Whether # anonymous_enable=YES allows anonymous access. Remove the # code to allow or not to indicate that it is not allowed, as follows
# whether local_enable=YES allows local users to access
# whether write_enable=YES allows local users to read
# local_umask=022 user mask is 007 by default and changed to 002 again
# whether anon_upload_enable=YES allows anonymous users to upload files
# whether anon_mkdir_write_enable=YES allows anonymous users to write permissions
# whether anon_world_readable_only=YES allows anonymous users to read-only files is only allowed to view and download files.
# whether userlist_deny=YES enables the user list feature
# userlist_enable=YESYES represents the user name in the userlist_file file is not allowed to log in. NO represents that only users in the userlist_file file are allowed to log in.
# userlist_file=/etc/vsftpd.user_list user's address for storing files
Local user wearable and FTP basic structure creation
In general, if the hard disk is assigned to the usr directory by default, we use the USR directory to store the FTP upload file address. The following is a basic configuration process in which anonymous users are allowed to download but have no other permissions. Local users have any permissions:
The "/ usr/share/empty" directory is required in the default configuration of VSFTPD. On the system, if this directory already exists, the mkdir command prompts you accordingly.
# mkdir / usr/share/empty/
Mkdir: cannot create directory'/ usr/share/empty': File exists
Create a new 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 a upload directory to store the uploaded files.
# mkdir / usr/ftp/upload
# useradd-d / usr/ftp/upload ftp FTP anonymous default account
Create a 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
# enter the password after passwd ftpuser is running
Just restart VSFTP service xinetd restart.
You must have learned a lot after reading this article. I hope this article can teach you more. You can learn the method of building FTP with vsftp under SUSE linux10.0.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 225
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.