I автомобиль mount (on boot/startup) an external (USB) HD on my Убунту Сервер. But, my webserver must see, and have access to the filesystem on this HD. My System is 3.16.0-53-generic #72~14.04.1-Ubuntu SMP Fri Nov 6 18:17:23 UTC 2015 x86_64 >x86_64 x86_64 GNU/Linux
At the moment I mount the HD with these settings:
/dev/sdb1 /media/MOUNTPOINT ext4 defaults 0 0
I need rights for user "www-восходит". But, if I do this after automount, в ошибку message ты ешь up...
я потею - или он www-восходит chown-R www-data:www-data / средний показатель / MOUNTPOINT chown: der Eigentümer von» / средний показатель / MOUNTPOINT “wird geändert: Vorgang nicht zulässig
translation: "Operation not allowed."
How хан I mount the whole HD for user "www-восходит"?
Вы должны запустить chown от имени пользователя root, так как www-data не может изменять владельца файлов:
sudo chown -R www-data:www-data /media/MOUNTPOINT