OpenWrt Forum Archive

Topic: Luci Multi-User With Root Administration

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have been working on this on and off over the past 6 months and have finally finished everything I set out to do. I have implemented a full blown multi-user module for openwrt-luci. I have created a github repository for the project.

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

to build the multi-user luci just put a "#" in front of the original luci src-link in the "feeds.conf.default" and add one of the links below. There is a link for Barrier Breaker and for Chaos Calmer and Trunk. Use the appropriate link

## LuCI 0.12 / 14.07 Barrier Breaker Branch ##
src-git luci https://github.com/Hostle/openwrt-luci- … ;luci-0.12

## LuCI trunk / Chaos Calmer Branch ##
src-git luci https://github.com/Hostle/openwrt-luci-multi-user.git

./scripts/feeds update luci
./scripts/feeds install -a -p luci

then build luci as normal, the new pkg will be in LuCI >> Modules > admin-multi-user

enjoy smile

(Last edited by hostle19 on 31 Mar 2016, 13:37)

hostle19 wrote:

I have been working on this on and off over the past 6 months and have finally finished everything I set out to do. I have implemented a full blown multi-user module for openwrt-luci. I have created a github repository for the project.

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

to build the multi-user luci just put a "#" in front of the original luci src-link in the "feeds.conf.default" and add one of the links below. There is a link for Barrier Breaker and for Chaos Calmer and Trunk. Use the appropriate link

## LuCI 0.12 / 14.07 Barrier Breaker Branch ##
src-git luci https://github.com/Hostle/openwrt-luci- … ;luci-0.12

## LuCI trunk / Chaos Calmer Branch ##
src-git luci https://github.com/Hostle/openwrt-luci-multi-user.git

./scripts/feeds update luci
./scripts/feeds install -a -p luci

then build luci as normal, the new pkg will be in LuCI >> Modules > admin-multi-user

enjoy smile

http://s17.postimg.org/eikxri9bv/user_main.jpg

http://s16.postimg.org/efflmkqy9/disable_menus.jpg

http://s22.postimg.org/ji7g7c9ml/user_menu.jpg

Dealing with the installation using the Putty or WinSCP ?

Nice.

I will add a link to the package, its difficult to use winscp or the likes due to the fact that I had to change a few file paths in the luci src to get it to play nice.Therefore,  you would need to add the modified files from the luci src in my git respo for it to work properly. With a little more polishing and some help from Jow or another developer I am sure we can alleviate the need to modify the luci src and allow a seamless transition.

Is it possible to install it as a package to an existing openwrt?

It is exactly what i need for some already installed openwrt routers to split and limit the accessing users. It is a greate contrib from your side!

(Last edited by Dirk_S on 31 Mar 2016, 12:31)

I would imagine you could install it over top with a package upgrade ... to get the latest sources use hnyman's repo from this thread --> https://forum.openwrt.org/viewtopic.php … 93&p=2

You would need to build luci with the multi-user package selected and then install the following packages as an upgrade ...

luci-base
luci-admin-full
luci-app-multi-user

Hi, oh great. What do you mean with to build luci? Can you advice me with an example?

Dirk_S wrote:

Hi, oh great. What do you mean with to build luci? Can you advice me with an example?

By this I mean compile it from the sources... if you like I can compile it for you, you'll need to register at my site and let me know what username you use to register so I can activate your account, then I con compile the src for you for the branch you need and upload the necessary packages to do the upgrade. Here is the link to my site ...

http://fire-wrt.com/forums/forum.php

The discussion might have continued from here.