Giter Site home page Giter Site logo

advanced-auth's Introduction

charm-local-users

Description

Charm Local Users is a subordinate charm for creating and managing local user accounts and groups on principal units. It can be related to any application using the juju-info interface.

It can be used to set up an unprivileged user for a hardware inventory system or grant access to staff members. It's intended for scenarios where you need to manage a relatively small number of users - 1-10 accounts rather than hundreds.

Privileged users and management of privileges are out of scope. Integration with external identity providers, such as LDAP or AD, is also out of scope.

Usage

Create a configuration file:

cat config-local-users.yaml
local-users:
  group: mygroup
  users: |
    alice;Alice;ssh-rsa ABC alice@desktop
    bob;Bob;ssh-rsa XYZ bob@laptop

Deploy the application:

juju deploy --config config-local-users.yaml local-users

Relate to any principal charm application of your choice, e.g.

juju relate local-users ubuntu

Charm can also be configured after deployment.

Example: to remove bob's account, create an updated user list file user.lst that doesn't include Bob's account anymore and simply update the config:

cat user.lst
alice;Alice;ssh-rsa ABC alice@desktop
juju config local-users [email protected]

The charm will enter a blocked state if you try to add a user account that already exists but isn't a member of the managed group. If you're sure that you want to add the pre-existing account to the managed group anyway, making it a charm managed account from now, you can run:

juju config local-users allow-existing-users=true

Home directories of removed users will be backed up in the location specified in the backup-path config option before being removed.

Relations

This charm that can be related to any principal charm application using the juju-info interface.

Contributing

Please see the Juju SDK docs for guidelines on enhancements to this charm following best practice guidelines, and CONTRIBUTING.md for developer guidance.

advanced-auth's People

Contributors

dashmage avatar przemeklal avatar marcusboden avatar jneo8 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.