Skip to content
Snippets Groups Projects
README.md 1.93 KiB
Newer Older
  • Learn to ignore specific revisions
  • Vivek Dutta's avatar
    Vivek Dutta committed
    # Usermngr
    User manager is a lightweight program to manage users, groups, supported shells and roles. It also provides the TR181 datamodel object `Device.Users.` using libbbf DotSO plugin.
    
    
    Suvendhu Hansa's avatar
    Suvendhu Hansa committed
    ## Configuration File
    
    Vivek Dutta's avatar
    Vivek Dutta committed
    
    
    Suvendhu Hansa's avatar
    Suvendhu Hansa committed
    The `usermngr` UCI configuration is located in **'/etc/config/users'**, and contains 4 sections: **'user'**, **'group'**, **'role'** and **'shell'**.
    
    ```bash
    config user 'admin'
            option enabled '1'
            option remote_access '1'
    
    config user 'user'
            option enabled '1'
            option remote_access '1'
    
    config shell
            option name 'ash'
            option enabled '1'
    
    config user 'user_14'
            option enabled '0'
            option remote_access '0'
            option member_groups 'G_group_19'
            option member_roles 'Default_1'
            option shell 'ash'
    
    config role 'role_1'
            option enabled '0'
            option role_id '2'
            option name 'Default_1'
    
    config group 'G_group_19'
            option enabled '0'
            option member_roles 'Default_1'
    ```
    
    
    Vivek Dutta's avatar
    Vivek Dutta committed
    > Note: To find more details about UCI parameters click [here](./docs/api/uci/usermngr.md) and for UCI raw schema click [here](./schema/uci.json)
    
    Suvendhu Hansa's avatar
    Suvendhu Hansa committed
    
    ## Dependencies
    
    To successfully build usermngr, the following libraries are needed:
    
    
    Vivek Dutta's avatar
    Vivek Dutta committed
    | Dependency    | Link                                        | License        |
    | ------------  | ------------------------------------------- | -------------- |
    | libuci        | https://git.openwrt.org/project/uci.git     | LGPL 2.1       |
    | libbbfdm-api  | https://dev.iopsys.eu/bbf/bbfdm.git         | BSD-3          |
    
    Suvendhu Hansa's avatar
    Suvendhu Hansa committed
    
    
    Runtime dependencies:
    
    | Dependency  | Link                                        | License        |
    | ----------- | ------------------------------------------- | -------------- |
    | ubus        | https://git.openwrt.org/project/ubus.git    | LGPL 2.1       |
    
    Vivek Dutta's avatar
    Vivek Dutta committed
    | bbfdm       | https://dev.iopsys.eu/iopsys/bbfdm.git      | BSD-3          |
    
    Suvendhu Hansa's avatar
    Suvendhu Hansa committed
    | shadow-utils| https://git.openwrt.org/feed/packages.git   | BSD-3-Clause   |