1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
|
.\"$Id: shadow.3,v 1.7 2001/01/25 10:43:51 kloczek Exp $
.\" Copyright 1989 - 1993, Julianne Frances Haugh
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, 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. Neither the name of Julianne F. Haugh nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
.\" all rights reserved.
.\" Translated Fri Feb 14 23:06:00 JST 1997
.\" by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
.\" updated Tue 17 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\"
.TH SHADOW 3
.SH ̾
shadow \- Ź沽줿ѥɥեѥ롼
.SH
.B #include <shadow.h>
.PP
.B struct spwd *getspent();
.PP
.B struct spwd *getspnam(char
.IB *name );
.PP
.B void setspent();
.PP
.B void endspent();
.PP
.B struct spwd *fgetspent(FILE
.IB *fp );
.PP
.B struct spwd *sgetspent(char
.IB *cp );
.PP
.B int putspent(struct spwd
.I *p,
.B FILE
.IB *fp );
.PP
.B int lckpwdf();
.PP
.B int ulckpwdf();
.SH
.I shadow
shadow ѥɥե
\fI/etc/shadow\fR Ƥ롼Ǥ롣
\fI#include\fR եͿƤ빽¤Τϰʲ̤ꡣ
.sp
struct spwd {
.in +.5i
.br
char *sp_namp; /* user login name */
.br
char *sp_pwdp; /* encrypted password */
.br
long sp_lstchg; /* last password change */
.br
int sp_min; /* days until change allowed. */
.br
int sp_max; /* days before change required */
.br
int sp_warn; /* days warning for expiration */
.br
int sp_inact; /* days before account inactive */
.br
int sp_expire; /* date when account expires */
.br
int sp_flag; /* reserved for future use */
.br
.in -.5i
}
.PP
ƥեɤΰ̣:
.sp
sp_namp \- ̥뽪ü줿桼̾ʸؤΥݥ
.br
sp_pwdp \- ̥뽪ü줿ѥʸؤΥݥ
.br
sp_lstchg \- 1970ǯ11ѥɺǽѹ
.br
sp_min \- ѥѹ褦ˤʤޤǤ
.br
sp_max \- ѥɤѹʤƤɤ
.br
sp_warn \- ѥɤڤˤʤˡ
ڤ줬ŤƤݤηٹ桼˽Ф֤
.br
sp_inact \- ѥɤڤˤʤäƤ顢
ȤǽȤʤѤǤʤʤޤǤ
.br
sp_expire \- 1970ǯ11饢ȤǽȤʤ
.br
sp_flag \- ȤȤ˸ͽ
.SH
\fBgetspent\fR, \fBgetspname\fR, \fBfgetspent\fR, \fBsgetspent\fR
ϡ줾 \fBstruct spwd\fR ؤΥݥ֤
\fBgetspent\fR ϥե뤫鼡Υȥ
\fBfgetspent\fR ϻꤵ줿ȥ
(ΥեȤߤʤ)
鼡Υȥ֤
\fBsgetspent\fR ϤȤͿ줿ʸѤ
\fBstruct spwd\fR ؤΥݥ֤
\fBgetspnam\fR ϥեθߤΰ֤
\fBname\fR ˥ޥå륨ȥõ
.PP
\fBsetspent\fR
shadow ѥɥեؤΥϤ뤿ˡ
\fBendspent\fR Ͻλ뤿Ѥ롣
.PP
\fB/etc/shadow\fR եФ¾Ūʥݾڤˤϡ
\fBlckpwdf\fR 롼 \fBulckpwdf\fR 롼Ѥ롣
\fBlckpwdf\fR \fBpw_lock\fR Ѥƺ 15 ô֥å褦Ȥ롣
ƺǽ 15 äλĤδ֡
\fBspw_lock\fR ˤäܤΥå褦Ȼ³롣
15 ô֤δ֤ˤ줫λߤԤϡ
\fBlckpwdf\fR -1 ֤
Υå 0 ֤롣
.SH ֤
Υ롼ϡȥ꤬ĤäƤʤ䡢
βǥ顼ȯˤ NULL ֤
֤ͤ \fBint\fR Ǥ롼ϡ
0 Ԥ -1 ֤
.SH ٹ
shadow줿ѥɥեؤΥ¤ƤΤǡ
Υ롼ϥѡ桼ѤǤ롣
.SH ե
/etc/shadow \- Ź沽줿桼ѥ
.SH Ϣ
.BR getpwent (3),
.BR shadow (5)
.SH
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
|