etcshells.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-config-shells" xreflabel="Creating the /etc/shells File">
  8. <?dbhtml filename="etcshells.html"?>
  9. <!--
  10. <sect1info>
  11. <othername>$LastChangedBy$</othername>
  12. <date>$Date$</date>
  13. </sect1info>
  14. -->
  15. <title>Creating the /etc/shells File</title>
  16. <indexterm zone="ch-config-shells">
  17. <primary sortas="e-etc-shells">/etc/shells</primary>
  18. </indexterm>
  19. <para>The <filename>shells</filename> file contains a list of
  20. login shells on the system. Applications use this file to determine
  21. whether a shell is valid. For each shell a single line should be
  22. present, consisting of the shell's path, relative to the root of the
  23. directory structure (/).</para>
  24. <para>For example, this file is consulted by <command>chsh</command>
  25. to determine whether an unprivileged user may change the login shell for her
  26. own account. If the command name is not listed, the user will be denied of
  27. change.</para>
  28. <para>It is a requirement for applications such as
  29. <application>GDM</application> which does not populate the
  30. face browser if it can't find <filename>/etc/shells</filename>, or
  31. FTP daemons which traditionally disallow access to users
  32. with shells not included in this file.</para>
  33. <screen role="root"><userinput>cat &gt; /etc/shells &lt;&lt; "EOF"
  34. <literal># Begin /etc/shells
  35. /bin/sh
  36. /bin/bash
  37. # End /etc/shells</literal>
  38. EOF</userinput></screen>
  39. </sect1>