User Tools

Site Tools


tips:addbundleusers_scripts
addbundleusers.sh
#/bin/bash
 
 
#  by cbustillo@uclv.edu.cu
 
# user pass
PASS="hpcusers2016"
 
# add users
 
for i in {1..30} ; do
echo "Adding user${i} to the system..."
useradd user${i} -m -p `openssl passwd -1 ${PASS}` -s /bin/bash
 
#echo "Addding user${i} to sudo group..."
#usermod -a -G sudo user${i}
done
tips/addbundleusers_scripts.txt · Last modified: 2020/04/10 17:38 (external edit)