<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="guide" id="pref-login-shell" xml:lang="fr">

  <info>
    <revision pkgversion="3.8" date="2013-03-03" status="review"/>
    <revision pkgversion="3.14" date="2014-09-08" status="review"/>
    <revision version="0.2" pkgversion="3.34" date="2020-01-04" status="review"/>
    <link type="guide" xref="index#preferences"/>
    <link type="guide" xref="pref#profile"/>

    <credit type="author copyright">
      <name>Sindhu S</name>
      <email>sindhus@live.in</email>
      <years>2013</years>
    </credit>
    <credit type="copyright editor">
      <name>Ekaterina Gerasimova</name>
      <email>kittykat3756@gmail.com</email>
      <years>2013-2014</years>
    </credit>
    <credit type="copyright editor">
      <name>Michael Hill</name>
      <email>mdhillca@gmail.com</email>
      <years>2013</years>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <desc>Démarrer un shell de connexion dans <app>Terminal</app>.</desc>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Yoann Fievez</mal:name>
      <mal:email>yoann.fievez@gmail.com</mal:email>
      <mal:years>2013</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Julien Hardelin</mal:name>
      <mal:email>jhardlin@orange.fr</mal:email>
      <mal:years>2013</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Alexandre Franke</mal:name>
      <mal:email>alexandre.franke@gmail.com</mal:email>
      <mal:years>2014</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Alain Lojewski</mal:name>
      <mal:email>allomervan@gmail.com</mal:email>
      <mal:years>2014</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Jérôme Sirgue</mal:name>
      <mal:email>jsirgue@free.fr</mal:email>
      <mal:years>2014</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Guillaume Bernard</mal:name>
      <mal:email>associations@guillaume-bernard.fr</mal:email>
      <mal:years>2015-2020</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Charles Monzat</mal:name>
      <mal:email>charles.monzat@free.fr</mal:email>
      <mal:years>2020</mal:years>
    </mal:credit>
  </info>

  <title>Shells de connexion</title>

  <p>Les shells dans les systèmes de type UNIX peuvent être démarrés dans les modes avec ou sans connexion :</p>

  <terms>
    <item>
      <title>Shell de connexion</title>
      <p>Un shell de connexion est un shell accessible à l’utilisateur lors de la connexion à son compte. Ce shell est démarré en utilisant les options <cmd>-l</cmd> ou <cmd>--login</cmd>, ou en plaçant un tiret en tant que premier caractère d’une commande, en invoquant <cmd>bash</cmd> avec <cmd>-bash</cmd> par exemple.</p>
    </item>
    <item>
      <title>Sous-programme shell</title>
      <p>Un sous-programme shell, aussi appelé shell sans connexion est un shell démarré après le processus d’authentification, sans les options <cmd>-l</cmd> ou <cmd>--login</cmd> et sans tiret supplémentaire avant le nom de la commande.</p>
    </item>
  </terms>

  <p>Les cas dans lesquels utiliser un shell de connexion sont :</p>
  <list>
    <item>
      <p>Accéder à l’ordinateur à distance en utilisant <app>ssh</app>.</p>
    </item>
    <item>
      <p>Simuler un shell de connexion initial avec <cmd>bash -l</cmd> ou <cmd>sh -l</cmd>.</p>
    </item>
    <item>
      <p>Simuler un shell de connexion administrateur avec <cmd>sudo -i</cmd>.</p>
    </item>
  </list>

  <section id="login-shell-howto">
    <title>Démarrer un shell de connexion</title>

    <p>Vous pouvez autoriser <app>Terminal</app> à démarrer un shell de connexion. Votre shell par défaut sera démarré avec un tiret précédent son nom.</p>

    <steps>
      <item>
        <p>Cliquez sur le bouton de menu situé dans le coin supérieur droit de la fenêtre, et sélectionnez <gui style="menuitem">Préférences</gui>.</p>
      </item>
      <item>
        <p>Dans la barre latérale, choisissez votre profil actuel dans la section <gui>Profils</gui>.</p>
      </item>
      <item>
        <p>Sélectionnez <gui style="tab">Commande</gui>.</p>
      </item>
      <item>
        <p>Sous l’étiquette <gui>Commande</gui>, sélectionnez <gui style="checkbox">Lancer la commande en tant que shell de connexion</gui>.</p>
      </item>
    </steps>

  </section>

</page>
