Hide root user on LUCI login

When I go to the device web interface i have this:


where the root login is the default showed, but i need this:

where the admin login becomes the default.

I added admin user via SSH shadow-useradd command and on LUCI via luci-app-acl package.

So how can I achieve this?

Thanks

Open the file /usr/lib/lua/luci/dispatcher.lua and look for
local scope = { duser = "root", fuser = user }
Change the default user to whatever you want and save the changes.
Delete the /tmp/luci-modulecache/ directory and refresh the login page.

4 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.