Skip to content

Instantly share code, notes, and snippets.

@MrDavidChz
Last active August 5, 2019 22:53
Show Gist options
  • Save MrDavidChz/1a302cbbf3a3b86e486bf6ee5f6f9bea to your computer and use it in GitHub Desktop.
Save MrDavidChz/1a302cbbf3a3b86e486bf6ee5f6f9bea to your computer and use it in GitHub Desktop.
# -m = Cree el directorio de inicio del usuario si no existe.
# -G = Nombre del Grupo
# -p = Asignar password
# -s = Asignar Bash "/bin/bash"
useradd -m -G forge newuser -p Password
useradd -m -G forge -s /bin/bash newuser
# agregar contraseña a un usuario
passwd newuser
# cambiar al grupo principal
sudo usermod -g forge newuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment