#!/bin/bash
sudo useradd {% math_inline %}1 -s /bin/bash -m
echo {% endmath_inline %}1 {% math_inline %}2 {% endmath_inline %}(date) >> ~/.users
echo {% math_inline %}1 {% endmath_inline %}2 {% math_inline %}(date) |sudo tee -a ~/.users /root/.config
(echo 'password'
sleep 1
echo 'password')|sudo passwd {% endmath_inline %}1
echo "使用passwd改密码,初始密码为password"
sudo edquota -p {% math_inline %}USER {% endmath_inline %}1
sudo mkdir /data/
sudo echo 'export CUDA_VISIBLE_DEVICES=0'|tee -a /home/$1/.bashrc