I'm using latest Centos 7 Minimal with CLI as web server. Web Server using httpd , and Database Server use MySql . I use vsftpd as FTP server from Windows to make me easy remote file and directory in that Centos. But I have a problem that vsftpd as FTP server cannot log in as root , so it's only directed into /home/[user] directory. But I need FTP access to the /var/www/html directory that contain all web files.
What should I do?
I will suggest you enable root FTP login and try to upload your file to /var/www/html directory with root user. You need to remove root in /etc/vsftpd/ftpusers and /etc/vsftpd/user_list and restart vsftpd on your server to enable root FTP login.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.