LogoHydro Contest

Admin Guide

Add a team user

Make sure to add the user to the teams group, which will restrict some permissions for the user, such as mounting disks and reboot or shutdown the system.

To add a team user, you can use the following command in the terminal:

create_user.sh
useradd --create-home --comment $(hostname) --shell /bin/bash --groups teams --password "$(openssl passwd -6 contest)" team

or using the following tasks in your ansible playbook:

create_user.ansible.yaml
---
- name: Create team user
  ansible.builtin.user:
    name: team
    comment: "{{ inventory_hostname }}"
    shell: /bin/bash
    groups: teams
    password: "{{ 'contest' | password_hash('sha512') }}"
    create_home: true

On this page