In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Build an ftp server, I use ubuntu 10.04 operating system, download vsftpdy source code,
Compiled, installed, and then according to INSTALL file, created a user and other operations.
Because time is tight, I use anonymous users to upload files for testing. Modified the/etc/vsftpd.conf file to
Remove the default comment that does not allow anonymous users to upload files, then save, then kill the vsftpd process, and then rerun
$ sudo vsftpd &
Start the FTP server.
Using a client, the connection works fine, but when uploading files, the 553 Could not create file error message is always reported.
I am also following the online practice of setting permissions on the/var/ftp directory, if set to chmod -R 777 /var/ftp
FTP server can not be started, after groping, finally found a solution.
First create a directory in the ftp directory and set permissions to 777
$ sudo mkdir /var/ftp/write
$sudo chmod -R 777 /var/ftp/write
Then modify the vsftp configuration file/etc/vsftpd.conf file
Add at the end
local_root=/var/ftp
Save, then kill the vsftpd process and restart the vsftpd server program.
Try uploading the file to the write directory, this time you can upload the file normally.
Let's look at another netizen's solution:
First of all, it depends on what user you uploaded, if it is an ordinary user:
1. To determine whether the target folder has read and write permissions,(of course, you must also have execution permissions, otherwise you cannot open the folder)
2 If you have all of them, then selinux is limited, and selinux can be turned off. (setenforce 0)
For anonymous users:
As above, turn off selinux, and then give the corresponding permission to solve
I'm here to talk about a solution that doesn't turn off selinux.
Run getsebool -a first| grep ftp (see what's in selinux about ftp)
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
ftp_home_dir --> off
ftpd_connect_db --> off
httpd_enable_ftp_server --> off
sftpd_anon_write --> off
sftpd_enable_homedirs --> off
sftpd_full_access --> off
sftpd_write_ssh_home --> off
tftp_anon_write --> off
Next we allow_ftpd_anon_write allow_ftpd_full_access these two ON off
setsebool -P allow_ftpd_anon_write on
setsebool -P allow_ftpd_full_access on
That's OK, if it appears.
500 OOPS: vsftpd: refusing to run with writable anonymous root
500 OOPS: priv_sock_get_cmd
That is, you give 777 permission to the root directory of VSFTPD, change it to 755, and then create a folder in this directory, you can give 777 permission!
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.