Javi

CLI: create new user linux workstation

Sep 24th, 2024 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. wget -O /etc/skel/.tmux.conf https://raw.githubusercontent.com/gpakosz/.tmux/master/.tmux.conf
  2. wget -O /etc/skel/.tmux.conf.local https://raw.githubusercontent.com/gpakosz/.tmux/master/.tmux.conf.local
  3.  
  4.  
  5. echo '[ "$TMUX" ] || tmux attach || tmux' >> /etc/skel/.profile
  6.  
  7. PASS=xxxxxxxxxxxxxxxxx
  8. for i in {1..30}
  9. do
  10. sudo useradd -m desk$i
  11. sudo usermod -aG docker desk$i
  12. # sudo usermod -aG sudo desk$i
  13. sudo chsh -s /usr/bin/bash desk$i
  14. yes $PASS | sudo passwd desk$i
  15. done
  16.  
  17. # set window-size smallest
  18.  
Advertisement
Add Comment
Please, Sign In to add comment