User base access in openwrt 19.07

I am using openwrt 19.07.
i want to create user base access. eg: if i am login as admin then it should show all the options like status network system and if i login as user then i should only have access to status and all other pages should be hidden.

was EOL:ed 2022, you're pretty much on your own.

It is luci-app-acl, suggest upgrading OpenWRT first.
Post output of ubus call system board to assess if upgrade is viable with current hardware.

Does luci-app-acl support openwrt 19
Also is there any way i can do this in 19.07 or without using any pakage

Why this version?

ubus call system board

I've removed the first part of my reply, because there's more to it then just editing the acl's unfortunately. The method provided, is a far better approach and is within the intended use of the acls.

A quick search yields -->openwrt-luci-how-to-implement-limited-user-access



If you'd like to create multiple OpenWRT Luci users with varying access, you can following these steps:

    Create a local user account
    Add the user to the RCP configuration and define access level

See sample excerpt from /etc/config/rpcd config below:

config login                     
        option username 'adminuser'
        option password '$p$adminuser'
        list read '*'
        list write '*'
                              
config login                     
        option username 'readonlyuser'
        option password '$p$readonlyuser'
        list read '*'

This also works if you're obtaining an authentication token for JSON-RPC calls to Luci.

Haven't tested it myself, but from what I can recall from way back when I was maintaining the luci-multi-user pkg, this would be a better method. You'll have to do some digging and or confirm this yourself...

i posted the wrong link. The complete solution was posted here --> solved-luci-add-support-user-in-addition-to-root

1 Like

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