Project

General

Profile

Scénario #29544

disposer de scripts d'administration ead3.

Added by Thierry Bertrand over 4 years ago. Updated about 4 years ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
PNE-SR - MTES - Prestation Cadoles - 07-09
Start date:
02/10/2020
Due date:
02/28/2020
% Done:

0%

Story points:
1.0
Remaining (hours):
0.00 hour
Velocity based estimate:

Subtasks

Tâche #29630: Script de créationRésolu

Tâche #29631: Script de suppressionRésolu

Tâche #29632: Script pour listerRésolu

Tâche #29633: DocumentationRésolu

Associated revisions

Revision 1f3c3a2a (diff)
Added by Benjamin Bohard over 4 years ago

Add some scripts to manage admin users

Ref #29544

Revision 111ace2c (diff)
Added by Benjamin Bohard over 4 years ago

Install scripts in /usr/share/eole/sbin.

Ref #29544

Revision 5427d033 (diff)
Added by Benjamin Bohard over 4 years ago

Install scripts in /usr/share/eole/sbin.

Ref #29544

Revision 9fec73fc (diff)
Added by Benjamin Bohard over 4 years ago

Install scripts in /usr/share/eole/sbin.

Ref #29544

Revision 2ebf3a61 (diff)
Added by Benjamin Bohard over 4 years ago

Install scripts in /usr/share/eole/sbin.

Ref #29544

Revision 27fb51e8 (diff)
Added by Benjamin Bohard over 4 years ago

Install scripts in /usr/share/eole/sbin.

Ref #29544

Revision babe4230 (diff)
Added by Benjamin Bohard over 4 years ago

Install scripts in /usr/share/eole/sbin.

Ref #29544

History

#1 Updated by Thierry Bertrand over 4 years ago

A l'instance, il est possible d'ajouter de nouveaux utilisateurs. Il serait utile de le faire dans la vie courante du serveur.
Disposer d'un script qui ajoute un utilisateur et lui octroie le profil administrateur ead3.
Disposer d'un script qui liste les utilisateurs ead3 et leurs profils.

#2 Updated by Benjamin Bohard over 4 years ago

Une nouvelle action EAD, de type tableau avec fonctionnalité d’ajout et de suppression (modèle quota).

#3 Updated by Thierry Bertrand over 4 years ago

  • Due date set to 02/28/2020
  • Target version set to Prestation Cadoles MEN 07-09
  • Start date set to 02/10/2020

#4 Updated by Thierry Bertrand over 4 years ago

  • Release deleted (MTES)

#6 Updated by Joël Cuissinat over 4 years ago

  • Target version changed from Prestation Cadoles MEN 07-09 to MTES - Prestation Cadoles - 07-09

#7 Updated by Emmanuel GARETTE over 4 years ago

Voici le script (le temps de savoir où le placer) :

#!/bin/bash

read -p "Login du nouvel administrateur : " user
id $user &> /dev/null
[ $? = 0 ] && echo "L'utilisateur existe déjà" 
adduser --quiet --shell /usr/bin/manage-eole --gecos "$user user" --disabled-password $user
usermod --append --groups adm,mail $user
while true; do
    passwd $user
    [ $? = 0 ] && break
done
exit 0

#8 Updated by Thierry Bertrand over 4 years ago

  • Story points set to 1.0

#9 Updated by Thierry Bertrand over 4 years ago

connexion ssh au serveur.

list_restricted_admins
=> eole
add_restricted_admin
=> tbd
list_restricted_admins
=> eole
=> tbd
del_restricted_admin
tbd
userdel : l'emplacement de boîte aux lettres de tbd (/var/mail/tbd) n'a pas été trouvé
list_restricted_admins
=> eole

#10 Updated by Thierry Bertrand about 4 years ago

  • Status changed from Nouveau to Terminé (Sprint)

Also available in: Atom PDF