admin-cookbook
Tracto admin cookbook
Welcome to the Tracto Administration Cookbook.
This notebook is designed as a guide for administrators. It includes practical examples and solutions for managing and maintaining a cluster. Each section provides step-by-step instructions for typical administrative tasks.
Create new user
import uuid
user_name = f"test_user_to_be_deleted_{uuid.uuid4()}"
create_user_command = "yt create user --attr '{name=%s; acl=[{action=allow; subjects=[universe-admins]; permissions=[write;administer;remove]}]}'" % user_name
!{create_user_command}
Set password.
user_password = f"some_big_and_secure_password_{uuid.uuid4}"
set_password_command = "yt set-user-password %s --new-password %s" % (user_name, user_password)
!{set_password_command}
Create homedir
!yt create map_node //home/{user_name}
Create group
group_name = f"group_to_be_deleted_{uuid.uuid4()}"
!yt create group --attributes '{name=%s}' %s group_name
Add user to group
# set user and group
user_name = user_name
group_name = group_name
!yt add-member {my_user} {my_group}