In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you how to write the log information into the Linux system log, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.
Here's how to write log information to Syslog / var/log/messages and its parameter: syslog_enable=yes/no.
one。 File transfer time (in second)
202.114.40.242 remote host IP address
/ incoming/index.html transfer file name, including path
A Transport types include:
A: ascii code transfer, b: binary file transfer
_ special treatment flag:
-: no processing
C: file compression
U: files are not compressed
T: file tar format
O File transfer direction
O: from server to client
I: from client to server
An access mode:
A: anonymous users
G: guest user
R: the local user is the system user
User name
FTP service type
0 authentication methods include:
1 rfc931 Certification
0: no authentication
* authenticate the user's id
C completion status:
C complete transmission transfer.
I: did not complete the transfer
II. Common troubleshooting of FTP
1. The log file file has an error message "500 OOPS: vsFTPd: not found: directory given in 'secure_chroot_dir':/usr/share/empty".
Solution: vsFTPd.conf add a line:
Secure_chroot_dir=/opt/usr/share/empty
Create a directory
Mkdir / opt/usr/share/empty
Then turn off anonymous login to vsFTPd.conf
Anonymous_enable=YES in
Modify to
Anonymous_enable=NO
two。 How to configure a linux vsFTPd server to chroot virtual users?
Solution:
When trying to chroot virtual users under vsFTPd, you need to do this: in vsFTPd.conf
Guest_enable=yes
# virtual users are mapped to user FTP which owns all dirs
Guest_username=FTP
# chroots the virtual user to his directory (user joe has directory joe)
Chroot_local_user=YES
User_sub_token=$USER
The key thing is to make sure that the FTP user's home directory in / etc/passwd actually contains the string $USER daemon in / var/FTP/$USER and does a simple string matching comparison to determine where to replace the user's name.
How can users be restricted to their own home directories in 3.vsFTP?
Solution:
Sometimes you don't want FTP users to have access to files other than their own home directory. The vsFTP daemon can configure this policy through chroot. Edit the / etc/vsFTPd/vsFTPd.conf file and add a line:
Chroot_local_user=YES
Remember to restart the vsFTPd service after saving:
Service vsFTPd restart
After restarting the service, all FTP users will be restricted to access files in their home directory.
4. How do I change the default root directory / var/FTP/pub of vsFTPd to another directory?
Solution: modify the root directory of FTP simply by modifying the / etc/vsFTPd/vsFTPd.conf file:
Add the following two lines:
Local_root=/var/www/html
Chroot_local_user=YES
Restart the service:
Service vsFTPd restart
Any user FTP who logs in to this server will chroot to the / var/www/html directory.
1. The log file file has an error message "500 OOPS: vsFTPd: not found: directory given in 'secure_chroot_dir':/usr/share/empty". Solution: vsFTPd.conf add a line: secure_chroot_dir=/opt/usr/share/empty create a directory mkdir / opt/usr/share/empty, then turn off anonymous login and change the anonymous_enable=YES in vsFTPd.conf to anonymous_enable=NO
two。 How to configure vsFTPd to chroot virtual users?
Solution: when trying to chroot virtual users under vsFTPd Need to do this: the key thing for guest_enable=yes # virtual users are mapped to user FTP which owns all dirs guest_username=FTP # chroots the virtual user to his directory (user joe has directory joe) chroot_local_user=YES user_sub_token=$USER in vsFTPd.conf is to make sure that the string $USER daemon in / etc/passwd 's FTP user's home directory is actually contained in / var/FTP/$USER does a simple string matching comparison to determine where to replace the user's name.
How can users be restricted to their own home directories in 3.vsFTP?
Solution: sometimes you don't want FTP users to have access to files other than their own home directory. The vsFTP daemon can configure this policy through chroot. Edit the / etc/vsFTPd/vsFTPd.conf file and add a line: remember to restart the linux vsFTPd server after chroot_local_user=YES is saved: after service vsFTPd restart restarts the service, all FTP users will be restricted to access files in their home directory.
4. How do I change the default root directory / var/FTP/pub of vsFTPd to another directory? Solution: modify the root directory of FTP simply by modifying the / etc/vsFTPd/vsFTPd.conf file: add the following two lines: local_root=/var/www/html chroot_local_user=YES restart service: service vsFTPd restart any user FTP who logs in to this server will chroot to the / var/www/html directory.
The above content is how to write the log information to the Linux system log. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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: 0
*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.