更改OpenWrt后台web登陆用户名

更改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”}

此博客中的热门博文

OpenWrt自定义版本型号主题

LUCI菜单的图标显示