找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: sdec040721

OPENWRT 18.06改默认root用户名

  [复制链接]
发表于 2020-4-19 21:20 | 显示全部楼层
按照楼主的方法该了之后,用户名的确可以修改,但是路由器samba共享的硬盘就不能用了,我来反馈一下,希望有后续更新~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-6-19 02:30 | 显示全部楼层
本帖最后由 zhouyuwei128 于 2020-6-19 02:39 编辑

谢谢楼主,改成功了!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-1-6 09:43 | 显示全部楼层
更改过后bug了  保存配置永远都卡在"正在应用"
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-1-6 13:13 | 显示全部楼层
修改/usr/lib/lua/luci/controller/admin/servicectl.lua
将entry({“servicectl”}, alias(“servicectl”, “status”)).sysauth = {“root”}修改为entry({“servicectl”}, alias(“servicectl”, “status”)).sysauth = {“username”}。
这个修改可以解决不能应用的问题
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-28 16:20 | 显示全部楼层
# find /usr -name sysauth.htm
/usr/lib/lua/luci/view/sysauth.htm
/usr/lib/lua/luci/view/themes/argon/sysauth.htm
/usr/lib/lua/luci/view/themes/bootstrap/sysauth.htm

sysauth.htm 这个文件注意要改当前生效的主题下的文件。

我感觉直接改用户名牵动到的地方多,我直接把 input 标签的 value 由原本的取值,直接写死成了 「OpenWrt Name」,这样也好

点评

哈喽,这个写死的命令是什么?能贴下看看嘛? 感谢  详情 回复 发表于 2023-2-2 22:27
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-2-2 22:27 | 显示全部楼层
本帖最后由 surfboy 于 2023-2-2 22:49 编辑
AllenHua 发表于 2022-9-28 16:20
# find /usr -name sysauth.htm
/usr/lib/lua/luci/view/sysauth.htm
/usr/lib/lua/luci/view/themes/arg ...

哈喽,这个写死的命令是什么?能贴下看看嘛? 感谢

<input class="cbi-input-user" type="text" name="luci_username" value="username" />,对吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-2-3 11:05 | 显示全部楼层
surfboy 发表于 2023-2-2 22:27
哈喽,这个写死的命令是什么?能贴下看看嘛? 感谢

,对吗?
  1. <input class="cbi-input-user" id="cbi-input-user" type="text" name="luci_username" value="username you want to display here" />
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-2-17 14:22 | 显示全部楼层
插眼备用,谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 13:05

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表