Настройка сервера LAMP с использованием Ubuntu 12.04 и VSFTPD.
Я пытаюсь получить доступ к папке /var/www (веб-root) с пользователем FTP.
Я создал нового пользователя ftpuser и добавил его в группу www-data , созданную автоматически Apache.
Домашний каталог этого пользователя установлен в /var/www . Я также изменил право собственности на группу /var/www на www-data и изменил разрешения на 02775 .
Однако я по-прежнему не могу загружать файлы. Ошибка: «553 Не удалось создать файл».
- Может кто-нибудь объяснить мне, как правильно установить эти разрешения?
- Какая правильная настройка? Должен ли я установить домашний каталог ftpuser на /var/www или каким-то другим образом?
Я нашел много тем в Интернете, но ни один из них не предлагает универсального решения.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux — A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author’s experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. I installed a tomcat under /opt/apache-tomcat-6.0.37 and I’m trying to put my web-project in the webapps/ROOT directory, but I always get «553 Could not create file.» in filezilla and my vsftpd.conf file I read that a lot of people helped: but not in my case (do I have to put something in ftp_home?) my user folder is under «/home/robin/» 4 Answers 4You need to run the following commands to allow in SELinux upload and edit files: Check what permission does the ftpuser have over /webapps/ROOT Change permission using chmod as shown below: choose value of x as per your requirement I tried a lot of different suggestions from a lot of different sites and pages. a combination of the above worked for me. |