Web服务器和FTP的Synology NAS权限 [英] Synology NAS permissions for web server and FTP
问题描述
我正在尝试将具有DSM 5.0-4482的Synology DS212j设置为具有FTP访问权限的Web服务器,但存在权限问题.我设法使站点启动并运行,并且SFTP服务器正在运行.问题是我无法通过FTP写入服务器. 我尝试向通过FTP连接的(本地)用户提供对Web文件夹的R/W访问权限,这样做时,我可以写入服务器,但无法访问浏览器中的页面.
I'm trying to set up a Synology DS212j with DSM 5.0-4482 as a web server, with FTP access but I'm having permission issues. I manage to get the site up and running, and the SFTP server running. The problem is that I can't write to the server via FTP. I tried giving R/W access to the web-folder to the (local) user connecting via FTP, when I do that I'm able to write to the server, but I can't access the page in the browser.
如何设置权限以同时访问Web服务器和FTP用户?
How do I set up permissions to give access both to the web server and the FTP user?
推荐答案
如果有人无意中发现了同样的问题.我遇到了同样的问题,并通过ssh登录到Synology中进行了修复.在我的情况下,ftp服务器的根目录是root/volume1/web.如果您具有root权限,则可以使用chmod更改权限.
If one stumbles upon this question with the same problem. I had the same issue and fixed it by logging in with ssh into the Synology. The root directory for the ftp server is in my case root/volume1/web. You can change permissions with chmod if you have root permissions.
打开终端窗口,输入以下内容(不要忘记输入synology的IP地址):
Open a terminal window an type the following (don't forget to enter the synology's ip address):
- ssh admin @ synology-ip-address
- sudo su
- chmod 775/volume1/web/
775是一个示例,仅提供所需的权限.
775 is an example, give only permissions you need.
希望有帮助!
此链接很好地说明了如何添加具有特殊权限的ftp用户 http://dimitar.me/how-to-create-an-ftp-user-and-allow-write-to-the-apache-root-directory-with-proper-permissions/
this link gives a good idea how to add ftp users with special permissions http://dimitar.me/how-to-create-an-ftp-user-and-allow-write-to-the-apache-root-directory-with-proper-permissions/
这篇关于Web服务器和FTP的Synology NAS权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!