![]() |
chsh(1) |
![]() |
chsh − Changer l'interpréteur de commandes initial
chsh [options] [LOGIN] |
La commande chsh modifie l'interpréteur de commandes initial (« login shell ») de l'utilisateur qui sera invoqué lors des connexions de l'utilisateur. Un utilisateur normal ne peut changer que l'interpréteur associé à son propre compte. Le superutilisateur peut changer l'interpréteur de commandes initial de n'importe quel compte.
Les options applicables à la commande chsh sont :
−h, −−help
Afficher un message d'aide et quitter.
−s, −−shell INTERPRÉTEUR
Nom du nouvel interpréteur de commandes initial (« login shell ») de l'utilisateur. Si ce champ est vide, le système sélectionnera l'interpréteur de commandes initial par défaut.
Quand l'option −s n'est pas sélectionnée, chsh opère de façon interactive, demandant à l'utilisateur quel doit être le nouvel interpréteur de commandes initial (« login shell »). L'utilisateur pourra entrer une nouvelle valeur pour modifier l'interpréteur, ou laisser la ligne blanche pour conserver l'interpréteur actuel. L'interpréteur actuel est indiqué entre crochets ([ ]).
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser, and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value.
/etc/passwd
Informations sur les comptes des utilisateurs.
/etc/shells
Liste des interpréteurs de commandes initiaux valables.
/etc/login.defs
Configuration de la suite des mots de passe cachés « shadow password ».
chfn(1), login.defs(5), passwd(5).
![]() |
chsh(1) | ![]() |