SyP-

alta_usuario.sh

Feb 9th, 2021 (edited)
195
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. read -p "Nombre de usuario: " MAILUSER
  4.  
  5. useradd -s /bin/false -m $MAILUSER
  6.  
  7. mkdir -p /var/mail/$MAILUSER
  8. chown $MAILUSER:$MAILUSER /var/mail/$MAILUSER
  9. chmod 750 /var/mail/$MAILUSER
  10.  
  11. passwd $MAILUSER
RAW Paste Data