« Rundeck : Création automatique d'un utilisateur Linux » : différence entre les versions

De www.yakakliker.org
Aucun résumé des modifications
Aucun résumé des modifications
 
(4 versions intermédiaires par le même utilisateur non affichées)
Ligne 4 : Ligne 4 :
=== Les variables ===
=== Les variables ===


* ENVIRONNEMENT
* '''ENVIRONNEMENT'''
** Variable texte
** Variable texte, nom de l'utilisateur
* Password
* '''Password'''
** Mot de passe de l'utilisateur
** Variable texte, Mot de passe de l'utilisateur


=== Le traitement ===
=== Le traitement ===


* Type Script
==== Type Script ====
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
#!/bin/bash
#!/bin/bash
Ligne 21 : Ligne 21 :
[[Catégorie:Création de compte]]
[[Catégorie:Création de compte]]
[[Catégorie:Linux]]
[[Catégorie:Linux]]
‎<html>
<script src='https://storage.ko-fi.com/cdn/scripts/overlay-widget.js'></script>
<script>
  kofiWidgetOverlay.draw('yakakliker', {
    'type': 'floating-chat',
    'floating-chat.donateButton.text': 'Café',
    'floating-chat.donateButton.background-color': '#00b9fe',
    'floating-chat.donateButton.text-color': '#fff'
  });
</script>
‎</html>
‎<html>
<a href="https://www.compteurdevisite.com" title="compteur web gratuit sans pub"><img src="https://counter6.optistats.ovh/private/compteurdevisite.php?c=b4epghealnwlf7wuq7gn3ygll9aywrfx" border="0" title="compteur web gratuit sans pub" alt="compteur web gratuit sans pub"></a>
‎</html>

Dernière version du 17 février 2025 à 18:00

Objectif

Créer un traitement de création d'utilisateur / mot de passe

Les variables

  • ENVIRONNEMENT
    • Variable texte, nom de l'utilisateur
  • Password
    • Variable texte, Mot de passe de l'utilisateur

Le traitement

Type Script

#!/bin/bash
useradd -s /bin/bash -m @option.ENVIRONNEMENT@
{ echo @option.Password@; echo @option.Password@; } | passwd @option.ENVIRONNEMENT@


compteur web gratuit sans pub