夜微的后院
lede新版本(v2.36)手动装v2后提示没权限解决方法
2020-08-13

原文https://www.cnblogs.com/biao-wu/p/13275486.html
亲测可用√

vim /usr/share/rpcd/acl.d/luci-base.json

{
"unauthenticated": {
    "description": "Allow system feature probing",
    "read": {
        "ubus": {
            "luci": [ "getFeatures" ]
        }
    }
},

"luci-base": {
    "description": "Grant access to basic LuCI procedures",
    "read": {
        "file": {
            "/": [ "list" ],
            "/*": [ "list" ]
        },
        "ubus": {
            "file": [ "list" ],
            "uci": [ "changes", "get" ]
        }
    },
    "write": {
        "cgi-io": [ "upload" ],
        "file": {
            "/etc/luci-uploads/*": [ "write" ]
        },
        "ubus": {
            "file": [ "remove" ],
            "uci": [ "add", "apply", "confirm", "delete", "order", "rename", "set" ]
        }
    }
},

加上下面这段

"uci-access": {
    "description": "Grant uci write access to all configurations",
    "read": {
        "uci": [ "*" ]
    },
    "write": {
        "uci": [ "*" ]
    }
},

结束

"luci-base-network-status": {
    "description": "Grant access to network status information",
    "read": {
        "ubus": {
            "luci-rpc": [ "getBoardJSON", "getHostHints", "getNetworkDevices", "getWirelessDevices" ],
            "network": [ "get_proto_handlers" ],
            "network.interface": [ "dump" ]
        },
        "uci": [ "luci", "network", "wireless" ]
    }
}

}

然后重启

版权声明:创作共用-署名-非商业性 CC-BY-NC