Last active
August 5, 2019 22:53
-
-
Save MrDavidChz/1a302cbbf3a3b86e486bf6ee5f6f9bea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -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