#!/bin/bash

. /usr/lib/common-criteria/scripts/libcc

# This script adds the defined non root user to the trusted group.

CCUSER=$(/usr/bin/id -nu 1000)

if [ $? -ne 0 ]; then
	cc_echo_log "UID 1000 not found, can't add user to trusted group!"
	exit
fi

/usr/sbin/usermod -a -G trusted "$CCUSER"
