Files
master/chapter07/etcshells.html
2015-05-23 18:50:06 +08:00

75 lines
3.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> 7.9.&nbsp;Creating the /etc/shells File </title>
<link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="stylesheet" href="../stylesheets/lfs-print.css"
type="text/css" media="print">
</head>
<body class="lfs" id="lfs-7.7-systemd">
<div class="navheader">
<h4> Linux From Scratch - Version 7.7-systemd </h4>
<h3> </h3>
<h3>第 7 章. 基本系统配置</h3>
<h3> </h3>
<ul>
<li class="prev"> <a accesskey="p" href="inputrc.html"
title="Creating the /etc/inputrc File">上一页</a>
<p> 建立 /etc/inputrc 文件 </p>
</li>
<li class="next"> <a accesskey="n" href="systemd-custom.html"
title="Systemd Usage and Configuration">下一页</a>
<p> Systemd 的用法与配置 </p>
</li>
<li class="up"> <a accesskey="u" href="chapter07.html"
title="Chapter&nbsp;7.&nbsp;Basic System Configuration">返回</a>
</li>
<li class="home"> <a accesskey="h" href="../index.html"
title="Linux From Scratch - Version 7.7-systemd">主页</a> </li>
</ul>
</div>
<div class="sect1" xml:lang="en" lang="en">
<h1 class="sect1"> <a id="ch-config-shells"
name="ch-config-shells"></a>7.9. 建立 /etc/shells 文件 </h1>
<p> <code class="filename">shells</code> 文件是当前系统所有可用 shell
的列表文件。应用程序通过读取它可以知道需要使用的 shell 是否有效。每行指定一个可用的 shell且需要为绝对路径。</p>
<p> 例如,当非特权用户想要使用<strong> </strong><span class="command"><strong>chsh</strong></span>
命令更改自己登录所用的 shell 时。如果命令没有在 /etc/shell 中找到,那么将会拒绝更改。</p>
<p> It is a requirement for applications such as <span
class="application">GDM</span> which does not populate the
face browser if it can't find <code class="filename">/etc/shells</code>,
or FTP daemons which traditionally disallow access to users with
shells not included in this file. </p>
<pre class="root"><kbd class="command">cat &gt; /etc/shells &lt;&lt; "EOF"
<code class="literal"># Begin /etc/shells
/bin/sh
/bin/bash
# End /etc/shells</code>
EOF</kbd>
</pre>
<p class="updated"> Last updated on 2007-04-04 14:42:53 -0500 </p>
</div>
<div class="navfooter">
<ul>
<li class="prev"> <a accesskey="p" href="inputrc.html"
title="Creating the /etc/inputrc File">上一页</a>
<p> 建立 /etc/inputrc 文件 </p>
</li>
<li class="next"> <a accesskey="n" href="systemd-custom.html"
title="Systemd Usage and Configuration">下一页t</a>
<p> Systemd 的用法与配置 </p>
</li>
<li class="up"> <a accesskey="u" href="chapter07.html"
title="Chapter&nbsp;7.&nbsp;Basic System Configuration">返回</a>
</li>
<li class="home"> <a accesskey="h" href="../index.html"
title="Linux From Scratch - Version 7.7-systemd">主页</a> </li>
</ul>
</div>
</body>
</html>