Hide menu items from user


I try to add a "Tech" user and hide some menu items from it so it only has access to some functions. I added a new menu item (that works) and would like that the Tech user only has access to the new menu, and not to the "System" and "Network" menu items.

I added a new user by adding following lines to the files:

/etc/shadow 	 	tech::0:0:99999:7:::
/etc/passwd			tech:x:1000:1000:tech:/root:/bin/false
/etc/group 			tech:x:1000:
/etc/config/rpcd	config login
					option username 'tech'
					option password '$p$tech'
					list read '*'

The System log shows "luci: accepted login on / for tech from myIP", so I guess adding a new user worked correct.

How do I hide/disable the menu items for the Tech user? Could someone please point me in the right direction? Any help is very much appreciated.

Thanks very much!

Has anybody done something like this or can point me in the right direction?

Thank you!

Take a look at luci-app-acl

1 Like

Thank you for your help, that worked for me. :slight_smile:

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