威联通ts-532x 5.0 qnap修改用户为管理员admin
新版 5.0 qnap 前面很多问题,感觉和权限有关,索性把常用账号改成管理员。
修改原因,1、威联通界面没找到可以上网的地方,无法测试网络连通情况,2、ssh界面不让使用ping命令,说是没有权限,3、网络配置路由需要调试。
以yuanda为例
[/etc] # cat passwd
admin:x:0:0:administrator,,administrator,:/share/homes/admin:/bin/sh
guest:x:65534:65534:guest:/tmp:/bin/sh
httpdusr:x:99:0:Apache httpd user:/tmp:/bin/sh
yuanda:x:1000:100:Linux User,000000000@qq.com,,:/share/homes/yuanda:/bin/sh
[/etc] # vim passwd
[/etc] # cat passwd
admin:x:0:0:administrator,,administrator,:/share/homes/admin:/bin/sh
guest:x:65534:65534:guest:/tmp:/bin/sh
httpdusr:x:99:0:Apache httpd user:/tmp:/bin/sh
yuanda:x:0:100:Linux User,000000000@qq.com,,:/share/homes/yuanda:/bin/sh
把yuanda的第二个1000,改成0,保存后,在用yuanda登录直接显示admin。