更改OpenWrt后台web登陆用户名
参考http://blog.sina.com.cn/zifangnen
1.修改/home/ihid/chaos_calmer/package/base-files/files/etc/passwd
将
root:x:0:0:root:/root:/bin/ash
修改为
username:x:0:0:root:/root:/bin/ash
2.修改/home/ihid/chaos_calmer/package/base-files/files/etc/shadow
将
root:xxxxxx:0:0:99999:7:::
修改为
username:xxxxxx:0:0:99999:7:::
3.修改/home/ihid/chaos_calmer/feeds/luci/modules/luci-mod-admin-full/luasrc/controller/admin/index.lua
将
page.sysauth = {“root”}
修改为
page.sysauth = {“username”}
4.修改/home/ihid/chaos_calmer/feeds/luci/modules/luci-base/luasrc/controller/admin/servicectl.lua
将
entry({“servicectl”}, alias(“servicectl”, “status”)).sysauth = {“root”}
修改为
entry({“servicectl”}, alias(“servicectl”, “status”)).sysauth = {“username”}