Path: blob/main/documentation/manual-pages/ja/man5/login.conf.5
18093 views
.\" Copyright (c) 1996 David Nugent <[email protected]> .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, is permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice immediately at the beginning of the file, without modification, .\" this list of conditions, and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. This work was done expressly for inclusion into FreeBSD. Other use .\" is permitted provided this notation is included. .\" 4. Absolutely no warranty of function or purpose is made by the author .\" David Nugent. .\" 5. Modifications may be freely made to this file providing the above .\" conditions are met. .\" .\" %FreeBSD: src/lib/libutil/login.conf.5,v 1.52 2004/08/06 12:56:39 roam Exp % .\" .\" $FreeBSD$ .Dd August 6, 2004 .Dt LOGIN.CONF 5 .Os .Sh ̾�� .Nm login.conf .Nd �������饹 �����ѥӥ�ƥ� �ǡ����١��� .Sh �� .Pa /etc/login.conf , .Pa ~/.login_conf .Sh ���� .Nm �ˤϡ��������饹�ˤĤ��ƤΤ��ޤ��ޤ�°���䥱���ѥӥ�ƥ��� �ޤޤ�Ƥ��ޤ��� �������饹 (�桼����������ȥǡ����١����Ǥ��� .Pa /etc/master.passwd �Τ��줾��ιԤˤĤ��Ƽ�ͳ������Ǥ�������) �ϡ����å����� ��������ƥ����������¡��桼���Ķ�����ʤɤ���ꤷ�ޤ��� �������饹�ϥ����ƥ���Τ��ޤ��ޤʥץ�����फ�����Ѥ��졢 �桼���Υ�������Ķ������ꤹ��ۤ��� �ݥꥷ����������ƥ��ڤӴ���������¤����ꤷ�ޤ��� �������饹�Ϥޤ��� �����ƥ�����Ѳ�ǽ�ʼ��ǧ�ڵ������Ф���桼��ǧ�ڼ��ʤ����ޤ��� �����˵��Ҥ����ʳ���°���ϡ������ɥѡ��ƥ��ˤ�� packages �����Ѳ�ǽ�Ǥ� .Pp �����ƥ�Υ桼�����饹�����ѥӥ�ƥ��ǡ����١����Ǥ��� .Pa /etc/login.conf ����� "default" �Ȥ������̤ʥ쥳���ɤϡ� .Pa /etc/master.passwd ���ͭ���ʥ������饹������ʤ� root �ʳ��Τ��٤ƤΥ桼���� ��äƼ�ưŪ�˻Ȥ��ޤ���ͭ���ʥ������饹������ʤ� uid �� 0 �� �桼���ϡ�"root" �쥳���ɤ�¸�ߤ�����Ϥ��Υ쥳���ɤ��� ¸�ߤ��ʤ����� "default" �쥳���ɤ��������饹�Ȥ��ƻȤ��ޤ��� .Pp .Fx �ˤ����Ƥϡ��ġ��Υ桼���� .Pa .login_conf �Ȥ����ե������ۡ���ǥ��쥯�ȥ�˺������뤳�Ȥ��Ǥ��ޤ��� ���Υե������ (/etc/login.conf ��) Ʊ���ե����ޥåȤǡ� �쥳���� id �� "me" �Ǥ��� 1 ����ȥ�Τߤǹ�������ޤ��� �⤷ .login.conf ��¸�ߤ���ʤ�С����Υե������ .Xr login 1 �ˤ�äƻ��Ѥ��졢�����ƥ�Υ��������ѥӥ�ƥ��ǡ����١����ˤ�ä� ���ꤵ�줿�桼���Ķ�����������ꤷ�ޤ��� ���κݡ����������ѥӥ�ƥ��Υ��֥��åȡ� ŵ��Ū�ˤϾ�ǧ���������¤����ƥ�������ƥ���ޤޤʤ���� �Τߤ������ޤ��� .Pp ���饹�����ѥӥ�ƥ��ǡ����١����Υ쥳���ɤϡ�������Ƕ��ڤ�줿 �����Ĥ��Υե�����ɤ��鹽������Ƥ��ޤ��� �ƥ쥳���ɤκǽ�Υե�����ɤϡ��쥳���ɤ����ꤹ�뤿��� 1 �Ĥޤ���ʣ����̾���ǡ������� '|' ʸ���Ƕ��ڤ��ޤ��� ���κǽ��̾�������Ǥ���̲����줿û��̾�ΤǤ��� �Ǹ��̾���ϡ����������ѥӥ�ƥ�����ȥ����ʬ����䤹���������� Ĺ��̾���Ǥ���٤��ǡ�¾��̾���Ϥ���Ʊ����Ǥ��� ���٤Ƥ�̾���Ͼ�ʸ�����Ķ����ޤޤʤ��褦�ˤ��٤��Ǥ����� �Ǹ��̾���ϲ��������θ���ơ���ʸ����֥��ޤ�Ǥ��Ƥ�褤�Ǥ��礦�� .Pp �����ѥӥ�ƥ��ǡ����١����Υե����ޥåȤˤĤ��Ƥξܺ٤������� .Xr getcap 3 �Ȥ��Ƥ��������� .Sh �����ѥӥ�ƥ� �ǡ����١�����Τ��줾��ιԤ˴ޤޤ��ե�����ɤϡ� .Xr getcap 3 �δ����˽������֡��뷿��ʸ���� .Ql \&= ���ͷ� .Ql \&# ������ޤ��� �������ʤ�����ͥǡ����ΤȤ����ϡ����ͷ������ݤ���ʸ���� ����������뤳�Ȥ����ä��ꡢξ���ν�����������뤳�Ȥ⤢��ޤ��� �ͤϼ��Υ��ƥ����ʬ�व��ޤ��� .Bl -tag -width "program" .It bool ̾����¸�ߤ����硢�֡����ͤϿ��ˤʤ�ޤ��� �����Ǥʤ���硢���ˤʤ�ޤ��� .It file �ǡ����ե�����ؤΥѥ�̾ .It program �¹Բ�ǽ�ե�����ؤΥѥ�̾ .It list ����ޤ����Ƕ��ڤ�줿�ͤΥꥹ�� (�ޤ����ͤ���) .It path ���̤� csh �δ����˽��ä�������䥳��ޤǶ��ڤ�줿�ѥ�̾�Υꥹ�� (��Ƭ�Υ桼��̾��ȼ��/ȼ��ʤ�������ϥۡ���ǥ��쥯�ȥ��Ÿ���������) .It number 10 �ʿ� (�ǥե����)��16 �ʿ� (0x �ǻϤޤ�)���ޤ��� 8 �ʿ� (0 �ǻϤޤ�) �� ���ͷ����͡����ͷ��ξ�硢����Ǥ����ͤ� 1 �Ĥ����Ǥ��� ���ͷ���ʸ���Υե����ޥåȤǤ����Ǥ����礬����ޤ� (�����ѥӥ�ƥ����� '#' ������� '=' ���ͤ����ڤ��Ƥ���ʤ�)�� �ɤ���ˡ���Ȥ�줿���Ǥ⡢�ǡ����١�����Τ��٤ƤιԤϽ����������Ԥ��ͤ� ���Τ˾���뤿��ˡ�Ʊ����ˡ���Ѥ��ʤ���Фʤ�ޤ��� .It size ��������ɽ��ʸ����ñ�̤Υǥե���Ȥβ��ϥХ��Ȥǡ����ե��å����� ��ä��̤�ñ�̤����Ǥ��ޤ��� .Bl -tag -offset indent -compact -width xxxx .It b 512 �Х��ȥ֥��å�������Ū�ʻ��� .It k �����Х��Ȥλ��� (1024 �Х���) .It m 1 �ᥬ�Х��Ȥξ���λ��� (1048576 �Х���) .It g �����Х���ñ�̤λ��ꡣ������ .It t �ƥ�Х��Ȥε��ҡ� .El ���������ͤϿ��ͤǤ��ꡢ���ե��å�������ʸ����ʸ���Ͻ��פǤϤ���ޤ��� Ϣ³�����ͤ������ޤ�ޤ��� .It time ���֤δ��֡��ǥե���Ȥ�ñ�̤��á� �ץ�ե��å����ˤ�ä��̤�ñ�̤����Ǥ��ޤ��� .Bl -tag -offset indent -compact -width xxxx .It y 1 ǯ�� 365 ���ǿ�����ǯ���λ��� .It w ���ο��λ��� .It d ���� .It h ���ֿ� .It m ʬ�� .It s �ÿ� .El Ϣ³�����ͤ������ޤ�ޤ��� ���Ȥ��� 2 ���� 40 ʬ�� 9600s��160m �ޤ��� 2h40m �� ɽ�����뤳�Ȥ��Ǥ��ޤ��� .El .Pp ���̤� .Em tc=value ɽ������Ѥ��뤳�Ȥˤ�ꡢ�̾����«���Ǥ��륱���ѥӥ�ƥ�����ȥ�� ��֤���ǽ�Ǥ��� .Sh ��������� .Bl -column coredumpsize indent indent .It Sy "̾�� �� �� ���� .It "coredumpsize size ��������ץ������κ��������� .It "cputime time CPU �������� .It "datasize size �ǡ����������κ��������� .It "filesize size �ե����륵�����κ��������� .It "maxproc number �ץ��������κ��������� .It "memorylocked size ����������å���ǽ�̤κ��������� .It "memoryuse size ������������̤κ��������� .It "openfiles number �ץ��������Ȥ˥����ץ�Ǥ���ե�������κ��������� .It "sbsize size ����Υ����åȥХåե������� .It "vmemoryuse size �ץ�����������κ����� VM ������ .It "stacksize size �����å��������κ��������� .El .Pp �����Υ�������¥���ȥ�ϡ��ºݤˤϺ����ͤȸ��ߤ� �����ͤ�ξ������ꤷ�ޤ� ( .Xr getrlimit 2 �Ȥ��Ƥ�������)�� ���̤ϸ��ߤ������� (���եȥ�ߥå�) ���Ȥ��ޤ����� �桼���ϸ��ߤ������ͤ���������� (�ϡ��ɥ�ߥå�) �ޤ����䤹���Ȥ� ������Ƥ��ޤ��� ���������ͤȸ��ߤ������ͤϥ����ѥӥ�ƥ�̾�˳ơ� -max �ڤ� -cur �� �ɲä��뤳�Ȥˤ�äƻ���Ǥ��ޤ��� .Sh �Ķ� .Bl -column ignorenologin indent xbinxxusrxbin .It Sy "̾�� �� �� ���� .It "charset string $MM_CHARSET �Ķ��ѿ�������Ū�������� .It "hushlogin bool false ~/.hushlogin �ե����뤬�������Ʊ�� .It "ignorenologin bool false nologin �ˤ�äƥ��������ػߤ���ޤ��� .It "ftp-chroot bool false FTP ��³�� .Xr chroot 2 ����Ѥ��ƥ桼���� .Ev HOME �ǥ��쥯�ȥ�����¤��ޤ��� �ܺ٤� .Xr ftpd 8 �Ȥ��Ƥ��������� .It "label string MAC �ݥꥷ������� .Xr maclabel 7 ���� .It "lang string $LANG �Ķ��ѿ�����ꤷ���ͤ����ꤷ�ޤ� .It "manpath path �ޥ˥奢��ڡ����Υǥե���ȸ����ѥ� .It "nocheckmail bool false ����������˥��Υ��ơ�������ɽ�����ޤ� .It "nologin file ���Υե����뤬¸�ߤ����硢�ե���������Ƥ����̤�ɽ�����졢���Υ������å����Ͻ�λ����ޤ� .It "path path /bin /usr/bin �ǥե���ȥ��ޥ�ɸ����ѥ� .It "priority number ͥ���� (nice) ��٥�ν���� .It "requirehome bool false ��������Τ����ͭ���ʥۡ���ǥ��쥯�ȥ꤬ɬ�� .It "setenv list ����ޤǶ��ڤ�줿�Ķ��ѿ��Ȥ��������ͤΥꥹ�� .It "shell prog �ѥ���ɥե�����ǻ��ꤵ��Ƥ��륷������ͥ�褷�Ƽ¹Ԥ���륻�å�����롣SHELL �Ķ��ѿ����ͤϡ��ѥ���ɥե�����ǻ��ꤵ��Ƥ����Τˤʤ�ޤ��� .It "term string ¾�μ��ʤˤ�äƷ���Ǥ��ʤ����Υǥե���Ȥ�ü�������� .It "timezone string $TZ �Ķ��ѿ��Υǥե������ .It "umask number 022 umask �ν���͡�³�������� 8 �ʿ��Ȳ�ᤵ���褦�ˡ���� 0 ����Ϥ�ޤ� .It "welcome file /etc/motd �����륫���å����������äƤ���ե����� .El .Sh ǧ�� .Bl -column passwd_prompt indent indent .It Sy "̾�� �� �� ���� .\" .It "approve program Program to approve login. .It "copyright file �ɲäΥ��ԡ��饤�Ⱦ����ޤ���ե����� .It "host.allow list ���饹��Υ桼��������������ǽ�ʥ�⡼�ȥۥ��ȥ磻��ɥ����ɤΥꥹ�� .It "host.deny list ���饹��Υ桼�������������ԲĤʥ�⡼�ȥۥ��ȥ磻��ɥ����ɤΥꥹ�� .It "login_prompt string .Xr login 1 ��Ϳ�����������ץ���ץ� .It "login-backoff number 3 ���β���Υ��������Ԥ��ʤ��줿�塢 ��³�����Ԥ��Ф��ƥХå������ٱ䤬�ɲä���ޤ��� .It "login-retries number 10 ���������ԤޤǤ˲�ǽ�ʡ� ���������Բ���� .It "passwd_format string md5 �����ѥ���ɤ����Ѥ��� �Ź�ե����ޥåȡ� ͭ�����ͤ� "md5", "des", "blf" �Ǥ��� NIS ���饤����Ȥ��� .Fx �ǤϤʤ� NIS �����Ф���Ѥ����硢 �����餯 "des" ����Ѥ��٤��Ǥ��礦�� .It "passwd_prompt string .Xr login 1 ��ɽ������ѥ���ɥץ���ץ� .It "times.allow list ������������Ƥ�������ӤΥꥹ�� .It "times.deny list ������������ʤ������ӤΥꥹ�� .It "ttys.allow list ���饹��Υ桼�������������˻��ѤǤ���ü����ü�����롼�פΥꥹ�� .It "ttys.deny list ���饹��Υ桼�������������˻����ԲĤ�ü����ü�����롼�פΥꥹ�� .It "warnexpire time �����������ʥ�������Ȥ��Ф�����������դ� �Ԥʤ����� .It "warnpassword time �����������ʥѥ���ɤ��Ф�������� ���դ�Ԥʤ����� .\".It "widepasswords bool false Use the wide password format. The wide password .\" format allows up to 128 significant characters in the password. .El .Pp �����Υե�����ɤϡ���������ǧ�ڥ����ƥ����� .Xr passwd 1 �䡢����¾�Υץ�����फ����Ѥ����ͽ��Ǥ��� .Pp �Ķ��ѿ������ꤹ�륱���ѥӥ�ƥ��ϡ��������ʸ�� .Ql \&~ �� .Ql \&$ ��ξ����������졢�����Ϥ��줾�� �桼���Υۡ���ǥ��쥯�ȥ�ڤӥ桼��̾���ִ�����ޤ��� �Ķ��ѿ���ˤ�����ʸ���Τޤޤ����ˤϡ� �������˥Хå�����å��� '\\' ��Ĥ��ƥ��������פ��ޤ��� .Pp .Em host.allow �� .Em host.deny ����ȥ�ϥ���ޤǶ��ڤ�줿�ꥹ�Ȥǡ������ƥ�ؤΥ�⡼�ȥ��������� �����å��˻Ȥ��ޤ��� �����ϥۥ���̾�� IP ���ɥ쥹�ޤ��Ϥ���ξ����ޤ�ꥹ�Ȥ���ʤꡢ �������Ф��ƥ�⡼�ȥ�������Υ����å����Ԥ��ޤ��� ���Υꥹ�Ȥγƹ��ܤϡ��磻��ɥ����ɰ����Ѥ˥�����ץ�����ब���Ѥ��Ƥ���Τ� Ʊ���Υ磻��ɥ����ɤ�ޤळ�Ȥ��Ǥ��ޤ� (�����ξܺ٤� .Xr fnmatch 3 �Ȥ��Ƥ�������)�� �ۥ��ȤΥ����å��ϡ���⡼�ȥ����ƥ�Υ����ͥåȥ��ɥ쥹 �� (�⤷ͭ���ʤ�) �ۥ���̾��ξ����Ĥ����碌�ƹԤ��ޤ��� ξ���Υꥹ�Ȥ������⤷���ϻ��ꤵ��Ƥ��ʤ���硢�������⡼�ȥۥ��� ����Υ�������ϵ��Ĥ���ޤ��� host.allow �� 1 �Ĥ�����ʾ�Υۥ��Ȥ�ޤ��硢�ꥹ����� �ƹ��ܤΤɤ줫�˥ޥå�������⡼�ȥ����ƥ�Τߤ���������������ޤ��� host.deny �� 1 �Ĥ�����ʾ�Υۥ��Ȥ�ޤ��硢���Υꥹ�ȤΤɤ줫�� �ޥå������ۥ��Ȥ���Υ������ػߤ���ޤ��� .Pp .Em times.allow �� .Em times.deny ����ȥ�ϥ���ޤǶ��ڤ�줿���֤Υꥹ�ȤǤ��ꡢ���δ��֤ϥ��饹��� �桼������������������ޤ��� ������ 1 �İʾ�����Υ����ɻ���ȡ������³���� 24 ����ɽ���γ��ϻ���� ��λ�����ϥ��ե�ޤ��ϥ��å���Ƕ��ڤä���ΤȤ���ɽ������ޤ��� ���Ȥ��� MoThSa0200-1300 �ϡ���ڡ��ڤ� ���� 2 �������� 1 ���Ȳ�ᤵ��ޤ��� �����λ��ֻ���ꥹ�Ȥ�ξ���������ä���硢���饹��Υ桼���Ϥ��ĤǤ⥢������ ��ǽ�ˤʤ�ޤ��� .Em times.allow �����ꤵ��Ƥ����硢��������ϻ��ꤵ�줿���֤Τߵ��Ĥ���ޤ��� �⤷ .Em times.deny �����ꤵ��Ƥ����硢 .Em times.allow ����Ǵ��֤����ꤵ��Ƥ��뤫�ɤ����˴ؤ�餺�����ꤵ�줿���֤� ��������Ǥ��ʤ��ʤ�ޤ��� .Pp .Xr login 1 ���������뤳�Ȥϡ������Υ���ȥ�ˤ����Ĥ��줿������˼ºݤ� �������Ԥʤ��뤳�ȤΤߤǤ����������դ��Ʋ������� ���å�������¸���֤˴ؤ��ƹ��ʤ뵬������ˤϡ��̤Υǡ������Ѱդ��� ���Ĥ���Ƥ�����֤�����Ĥ���Ƥ��ʤ����֤ؤ� ���ܤ�ƻ뤹��ɬ�פ�����ޤ��� .Pp .Em ttys.allow �� .Em ttys.deny ����ȥ�ϡ����饹��Υ桼���������ƥ�˥����������뤿��˻Ȥ� ����ޤǶ��ڤ�줿 (/dev/ �ץ�ե��å��������) ü���ǥХ����ȡ� ü�����롼�� (ttygroup) �Υꥹ�ȤǤ� (ttygroup �ξܺ٤� .Xr getttyent 3 �� .Xr ttys 5 �Ȥ��Ʋ�����)�� �ɤ���Υ���ȥ��¸�ߤ��ʤ���硢�桼�������Ѥ����������ǥХ���������ˤ� ���¤Ϥ���ޤ��� .Em ttys.allow �Τ��ꤵ��Ƥ����硢�桼���λȤ���ǥХ����ϻ��ꤵ�줿���롼�� �ޤ��ϥǥХ����ꥹ�ȤΤߤ����¤���ޤ��� .Em ttys.deny �Τ��ꤵ��Ƥ����硢�桼���ϻ��ꤵ�줿�ǥХ�����ǥХ��� ���롼�פ���ѤǤ��ޤ��� ξ����Ϳ�����Ƥ��Ƥ��Ĥɤ������Ǥʤ���硢�桼���� ttys.allow �ǻ��ꤵ��Ƥ��ơ�ttys.deny �Ǥϻ��ꤵ��Ƥ��ʤ��ǥХ������Τ� ���ѤǤ��ޤ��� .Pp .Em minpasswordlen ����� .Em minpasswordcase �ε�ǽ�ϡ��ѥ���ɤ��ʼ����¤������뤿��Τ�ΤǤ��� .Nm �ǥ��ݡ��Ȥ���Ƥ��ޤ����������ߤ� .Xr pam_passwdqc 8 PAM �⥸�塼��ˤȤäƤ�����ޤ����� .Sh ͽ��ѥ����ѥӥ�ƥ� ���������ѥӥ�ƥ��ϡ����Ҥ��줿��Ū�Τ����ͽ��ѤǤ��ꡢ �����ɥѡ��ƥ����եȥ������ˤ�äƥ��ݡ��Ȥ���Ƥ��뤫�⤷��ޤ��� �١��������ƥ�Ǥϼ�������Ƥ��ޤ��� .Bl -column host.accounted indent indent .It Sy "̾�� �� �� ���� .It "accounted bool false ���Υ��饹������桼���� ���å������֥�������ƥ���ͭ���� .It "autodelete time ��������ȼ����弫ư�Ǻ�������ޤǤλ��� .It "bootfull bool false ���å����λ���Ρ�ttygroup �����դξ��ˤΤߥ֡��ȡ���ά�� ͭ���ˤ��� .It "daytime time 1 ��������Υ������������� .It "expireperiod time �����ڤ�ޤǤγ�����ƻ��� .It "graceexpire time ����������������Ȥ�ͱͽ���� .It "gracetime time �ɲä��줿��ͱͽ����������Ļ��� .It "host.accounted list �������å����������Ȥ���� ��⡼�ȥۥ��ȥ磻��ɥ����ɤΥꥹ�� .It "host.exempt list �������å����Υ�������ƥ��� ���Ƚ����줿��⡼�ȥۥ��ȥ磻��ɥ����ɤΥꥹ�� .It "idletime time ���������ȤޤǤκ��祢���ɥ���� .It "minpasswordlen number 6 ��������ѥ����ʸ����Ĺ�κǾ��� .It "mixpasswordcase bool true ���٤ƾ�ʸ���Υѥ���ɤ����Ϥ��줿��硢 .Xr passwd 1 ���桼���˷ٹ𤷤ޤ� .It "monthtime time ����κ������������� .It "passwordtime time ����ѥ����̵��������ꤹ�뤿��� .Xr passwd 1 ������ .It "refreshtime time ��������ȤΥ�ե�å�����Ļ��� .It "refreshperiod str ��ե�å��夬�Ԥʤ������� .It "sessiontime time ���å������κ������������� .It "sessionlimit number ���٤ƤΥ��롼�פ��Ф��� tty ��� Ʊ�������������� .It "ttys.accounted list ������������Ȥ�ͭ���� tty �� ttygroup �Υꥹ�� .It "ttys.exempt list ������������Ȥ�̵���� tty �� ttygroup �Υꥹ�� .It "warntime time �����ڤ�ˤʤꤽ���ʾ����Ф�����������դ� �Ԥʤ����� .It "weektime time 1 ������κ������������� .El .Pp .Em ttys.accounted �� .Em ttys.exempt �ե�����ɤϡ���˽Ҥ٤� .Em ttys.allow �� .Em ttys.deny ��Ʊ���褦����ˡ�Ǿ��֤����ޤ��� .Em host.accounted �� .Em host.exempt �Υꥹ�Ȥ�Ʊ�ͤǤ��� .Sh ��Ϣ���� .Xr cap_mkdb 1 , .Xr login 1 , .Xr chroot 2 , .Xr getcap 3 , .Xr getttyent 3 , .Xr login_cap 3 , .Xr login_class 3 , .Xr pam 3 , .Xr passwd 5 , .Xr ttys 5 , .Xr ftpd 8 , .Xr pam_passwdqc 8