Administration système
6.3 Gestion des utilisateurs
Opé‐
ration
4
5
Exemple
Dans cet exemple, la fonction est activée pour l'utilisateur existant user1.
localhost# config
Entering configuration mode terminal
localhost(config)# system authentication user user1 change-of-
password-required
localhost(config-user-user1)# Warning: change-of-password-required
was changed. When the change is committed, active session(s) of the
*affected user* will be terminated.
localhost(config-user-user1)#
proceed, use the 'abort' command to cancel the transaction.
localhost(config-user-user1)# commit
Commit complete.
localhost(config-user-user1)# end
localhost# show running-config system authentication user user1
change-of-password-required
system
authentication
user user1
exit
exit
exit
Si l'utilisateur user1 possède une session CLI en cours, tandis que la fonction est activée, il
obtient les messages suivants :
login as: user1
user1@192.0.2.2's password:
Welcome to the SINEC OS Command Line Interface
Copyright (c) 2019 Siemens AG
user1 connected from 192.0.2.2 using ssh on switch02
switch02# ...
System message at 2021-01-01 00:08:00...
Commit performed by admin via ssh using cli.
switch02# Session will close in 3 seconds
switch02# Session will close in 2 seconds
switch02# Session will close in 1 second
switch02# Connection to 192.168.16.34 closed.
180
Instruction
Quittez le mode de configuration.
Contrôlez la configuration.
change-of-password-required
Commande
end
show running-config system
authentication user { Nom
d'utilisateur } change-of-
password-required
If you don't wish to
Command Line Interface (CLI) SINEC OS V2.4
Manuel de configuration, 10/2023, C79000-G8977-C498-07