openwrt安装多user luci

2420阅读 0评论2016-01-13 sheepbao
分类:LINUX


  1. 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
  2. Available Features
  3. - add/remove users from the luci ui
  4. - set ssh access to on or off on a per user basis
  5. - set user type to user(basic ssh permissions) or admin(elevated ssh permissions) per user basis
  6. - set what luci ui menus options are visible and available for new users on a per user basis
  7. - initial password for new users is openwrt, users can set there own password once logged in
  8. Build Instructions
  9. Just add the feed and update then you will see the pkg in the menuconfig under LuCI >> Modules called "admin-multi-user".
  10. ## LuCI 0.12 / 14.07 Barrier Breaker Branch ##
  11. src-git luci https://github.com/Hostle/openwrt-luci-multi-user.git;luci-0.12
  12. or the development branch
  13. ## LuCI trunk / Chaos Calmer Branch ##
  14. src-git luci https://github.com/Hostle/openwrt-luci-multi-user.git
  15. 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
  16. ./scripts/feeds update luci
  17. ./scripts/feeds install -a -p luci
  18. then you should see the new pkg in the menuconfig under LuCI >> Modules > admin-multi-user

  19. 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.

上一篇:65条最常用正则表达式,你要的都在这里了
下一篇:shell获取外网ip