I have finished and tested the code. As far as I am concerned I have completed a full blown multi-user setup for luci/openwrt. I have added the ability to hide ANY menu from ANY non root user ... finally smile
Available Features
-add/remove users from the luci ui
- set ssh access to on or off on a per user basis
- set user type to user(basic ssh permissions)or admin(elevated ssh permissions) per user basis
- set what luci ui menus options are visible and available for new users on a per user basis
- initial password for new users is openwrt, users can set there own password once logged in
Build Instructions
Just add the feed and update then you will see the pkg in the menuconfig under LuCI >> Modules called "admin-multi-user".
just add the appropriate feed to your "feeds.conf.default"and then put a "#"in front of the original luci feed and then update the luci feed
./scripts/feeds update luci
./scripts/feeds install -a -p luci
then you should see the new pkg in the menuconfig under LuCI >> Modules > admin-multi-user
The mods to the luci src are minimal,and luci functions fine when package is removed. Aside for the code added I have to rename a few files in the luasrc in the admin-full and admin-base but again this does not effect luci functionality . I think this could easily be pushed to the luci src and become a valuable tool in which the openwrt community could really benefit from. I have my own respo set up were the code can be fetched and built but ultimately I would like to see it become part of the luci repository or at least have the necessary changes made to the luci src to accommodate the multi-user package.