⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1186-1187.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Complete Command Reference:File Formats:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=05 //-->

<!-- PAGES=1103-1208 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="1183-1185.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1188-1189.html">Next</A></CENTER></P>







<A NAME="PAGENUM-1186"><P>Page 1186</P></A>





<P><B>

BUGS

</B></P>



<P>There is a maximum of 35 aliases, due to the way the

getservent(3) code is written.

</P>



<P>Lines longer than BUFSIZ (currently 1024) characters will be ignored by

getservent(3), getservbyname(3), and getservbyport(3). However, this will also cause the next line to be misparsed.

</P>



<P><B>

FILES

</B></P>



<!-- CODE SNIP //-->

<PRE>

/etc/services            The Internet network services list

/usr/include/netdb.h     Definition of _PATH_SERVICES

</PRE>

<!-- END CODE SNIP //-->





<P><B>

SEE ALSO

</B></P>



<!-- CODE //-->

<PRE>

getservent(3), getservbyname(3), getservbyport(3),

setservent(3), endservent(3), protocols(5), listen(2),

inetd.conf(5), inetd(8), Assigned Numbers RFC, most recently RFC 1700 (AKA STD0002),

Guide to Yellow Pages Service, Guide to 

BIND/Hesiod Service.

</PRE>

<!-- END CODE //-->



<P>

Linux, 11 January 1996

</P>



<H3><A NAME="ch05_ 54">

shells

</A></H3>



<P>shells&#151;Pathnames of valid login shells.

</P>



<P><B>

DESCRIPTION

</B></P>



<P>/etc/shells is a text file that contains the full pathnames of valid login shells. This file is consulted by

chsh(1) and is available to be queried by other programs.

</P>



<P><B>

EXAMPLES

</B></P>



<P>/etc/shells may contain the following paths:

</P>



<!-- CODE SNIP //-->

<PRE>

/bin/sh

/bin/csh

</PRE>

<!-- END CODE SNIP //-->





<P><B>

FILES

</B></P>



<!-- CODE SNIP //-->

<PRE>

/etc/shells

</PRE>

<!-- END CODE SNIP //-->



<P><B>

SEE ALSO

</B></P>



<P>

chsh(1)

</P>



<P>21 November 1993

</P>



<H3><A NAME="ch05_ 55">

syslog.conf

</A></H3>



<P>syslog.conf&#151;syslogd(8) configuration file.

</P>



<P><B>

DESCRIPTION

</B></P>



<P>The syslog.conf file is the configuration file for the

syslogd(8) program. It consists of lines with two fields: the

selector field, which specifies the types of messages and priorities to which the line applies, and an

action field, which specifies the action to be taken if a message

syslogd received matches the selection criteria. There cannot be any spaces in the

action field. The selector field is separated from the

action field by one or more tab or space characters. (This is a departure from

the standard BSD way of doing things; both tabs and spaces can be used to separate the selector from the action.)

</P>



<P>The selector functions are encoded as a facility, a period

(.), and a level, with no intervening whitespace. Both the

facility and the level are case insensitive.

</P>







<A NAME="PAGENUM-1187"><P>Page 1187</P></A>





<P>The facility describes the part of the system generating the message and is one of the following keywords:

auth, authpriv, cron, daemon, kern, lpr, mail,

mark, news, syslog, user, uucp, and local0 through

local7. These keywords (with the exception of mark) correspond to the similar

Dv LOG_ values specified to the openlog(3) and

syslog(3) library routines.

</P>



<P>The level describes the severity of the message and is a keyword, optionally preceded by an equals

(=), from the following ordered list (higher to lower):

emerg, alert, crit, err, warning, notice, info, and

debug. These keywords correspond to the similar Dv

LOG_ values specified to the syslog library routine.

</P>



<P>See syslog(3) for further descriptions of both the

facility and level keywords and their significance.

</P>



<P>If a received message matches the specified facility and is of the specified level (or a higher level if level was specified

without =), the action specified in the action field will be taken.

</P>



<P>Multiple selectors may be specified for a single action by separating them with semicolon

(;) characters. It is important to note, however, that each selector can modify the ones preceding it.

</P>



<P>Multiple facilities may be specified for a single level by separating them with comma

(,) characters.

</P>



<P>An asterisk (*) can be used to specify all facilities or all levels.

</P>



<P>The special facility &quot;mark&quot; receives a message at priority &quot;info&quot; every 20 minutes (see

syslogd(8)). This is not enabled by a facility field containing an asterisk.

</P>



<P>The special level &quot;none&quot; disables a particular facility.

</P>



<P>The action field of each line specifies the action to be taken when the

selector field selects a message. There are four forms:

</P>



<P>A pathname (beginning with a leading slash). Selected messages are appended to the file.

</P>



<P>A hostname (preceded by an at (@) sign). Selected messages are forwarded to the

syslogd program on the named host.

</P>



<P>A comma-separated list of users. Selected messages are written to those users if they are logged in.

</P>



<P>An asterisk. Selected messages are written to all logged-in users.

</P>



<P>Blank lines and lines whose first non-blank character is a hash

(#) character are ignored.

</P>



<P><B>

EXAMPLES

</B></P>



<P>A configuration file might appear as follows:

</P>



<!-- CODE //-->

<PRE>

# Log all kernel messages, authentication messages of

# level notice or higher and anything of level err or

# higher to the console.

# Don't log private authentication messages!

*.err;kern.*;auth.notice;authpriv.none                   /dev/console



# Log anything (except mail) of level info or higher.

# Don't log private authentication messages!

*.info;mail.none;authpriv.none                          /var/log/messages



# Log debug messages only

*.=debug                                                /var/log/debug



# The authpriv file has restricted access.

authpriv.*                                              /var/log/secure



# Log all the mail messages in one place.

mail.*                                                  /var/log/maillog



# Everybody gets emergency messages, plus log them on another

# machine.

*.emerg                                                 *

*.emerg                                                 @arpa.berkeley.edu



</PRE>

<!-- END CODE //-->











<P><CENTER>

<a href="1183-1185.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1188-1189.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -