如何使用浏览器访问受限制的网站区域(权限设置为700)?

问题描述 投票:1回答:1

我目前有一个共享主机的网站。网站的一部分(特别是目录)的权限设置为700(仅限用户)。我这样做是因为该网站的用户无法访问该网站的该部分。用户会收到'405 Forbidden'错误。

我现在遇到的问题是,我不确定如何以管理员身份访问该目录中的网页。我试过SSH隧道但它不起作用。

我必须补充一点,限制区域中的文件主要是HTML,所以我需要通过浏览器打开它们。

关于如何访问这些部分的任何想法?

html browser ssh permissions
1个回答
0
投票

如果你正在使用cPanel试试这个:

 1. Login to your cPanel (if not already there)
 2. Click File Manager
 3. Click the name of the file for which you would like to change the
permissions.
 4. Select the Change Permissions link at the top right of the page.
 5. Select the permissions you would like to set for the file.
 6. Click Change Permissions

这里有一些可能有用的额外信息

Read = 4
Write = 2
Execute = 1
No permissions = 0

Write and Execute = 3
Read and Execute = 5
Read and Write = 6
Read and Write and Execute = 7

希望这可以帮助

© www.soinside.com 2019 - 2024. All rights reserved.