Skip to content

Instantly share code, notes, and snippets.

@Franklin13620
Created September 14, 2020 02:36
Show Gist options
  • Save Franklin13620/8ce63b24a00e84a7cb96b83c2637c597 to your computer and use it in GitHub Desktop.
Save Franklin13620/8ce63b24a00e84a7cb96b83c2637c597 to your computer and use it in GitHub Desktop.
Example: Create User
#Example create user in linux
print("Escribe el comando addgroup + (nombre del grupo)", end="")
name_group = input()
print(f"Haz creado un nuevo grupo:, {name_group}")
print("Ingrese el comando adduser ", end="")
name_user = input()
print(f"Haz creado un nuevo usuario:, {name_user}")
print("Escribe el comando adduser (usuario) (grupo)")
command_user = input()
print(f"Asi se añade usuarios a un grupo, {command_user}")
print("Escribe el comando groupmod -n (nuevo grupo) (actual grupo)")
command_group = input()
print(f"Asi se modifica el nombre del grupo, {command_group}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment