From owner-man-jp@jp.freebsd.org  Sun Oct 26 19:28:26 1997
Received: by jaz.jp.freebsd.org (8.8.7+2.7Wbeta7/8.7.3) id TAA27190
	Sun, 26 Oct 1997 19:28:26 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.7+2.7Wbeta7/8.7.3) with ESMTP id TAA27185
	for <man-jp@jp.freebsd.org>; Sun, 26 Oct 1997 19:28:25 +0900 (JST)
Received: from localhost (ppp334.yk.rim.or.jp [202.247.165.34]) by mail.yk.rim.or.jp (8.8.5/3.4Wbeta6-rim1.1) with ESMTP id TAA11206; Sun, 26 Oct 1997 19:28:23 +0900 (JST)
Message-Id: <199710261028.TAA11206@mail.yk.rim.or.jp>
From: k-horik@yk.rim.or.jp
To: man-jp@jp.freebsd.org
In-reply-to: Your message of "Sun, 26 Oct 1997 13:04:23 JST."
             <199710260417.NAA20523@rigel.opt.phys.waseda.ac.jp> 
Date: Sun, 26 Oct 1997 19:27:05 +0900
Reply-To: man-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=20]
X-Sequence: man-jp 358
Subject: [man-jp 358] Re: pw.8 
Errors-To: owner-man-jp@jp.freebsd.org
Sender: owner-man-jp@jp.freebsd.org

$B$/$j$d$^$5$s(B: 
> $B!!$5$F!"$A$g$C$H$o$+$i$J$$=j$,=P$F$-$?$N$G$^$H$a$F0U8+Jg=8!#(B
> 
> (1) login class $B$r@_Dj$9$k=j$G!"1Q8l$G(B
>   This field is not currently used, but will be in the future used 
>   to specify a
>   .Em termcap
>   entry like tag (see
>   .Xr passwd 5
>   for details).
> $B$H$J$C$F$$$k=j$J$s$G$9$,!"$=$N$^$^Lu$9$H!V%?%0$N$h$&$J(B termcap $B%(%s%H%j!W$K$J(B
> $B$k$+$H;W$&$s$G$9$,!"$3$l$C$FK\Ev$O!V(Btermcap $B%(%s%H%j$N$h$&$J%?%0!W$@$C$?$j$O(B
> $B$7$J$$$s$G$7$g$&$+!)!!(B"(termcap entry like) tag" $B$J$N$+(B "termcap entry (like
>  tag)" $B$J$N$+!D!D!#(B

 man 5 passwd $B$K$h$k$H!"(B
>     The class field is a key for a user's login class.  Login classes are de-
>     fined in login.conf(5),  which is a termcap(5) style database of user at-
>     tributes, accounting, resource and environment settings.
 $B$H!"(Blogin.conf(5) $B$r(B termcap(5) $B$KNc$($F$$$k$N$G!"!V(Btermcap $B%(%s%H%j(B
$B$N$h$&$J%?%0!W$J$N$@$H;W$$$^$9!#(B


> (2) account expiration period $B$C$F$N$O!V%"%+%&%s%H$,L58z$K$J$k$^$G$N4|4V!W$G(B
> $B$9$h$M!)!!!V%"%+%&%s%HGK4~4|4V!W$@$H0UL#$,4V0c$C$F<h$i$l$F$7$^$&2DG=@-$,$"$k(B
> $B$+$H;W$&$N$G$9$,!"$&$^$$Lu8l$O$"$j$^$;$s$+!)(B
> $B!!$J$1$l$PLLE]$J$s$G$=$N$^$^!V%"%+%&%s%H$,L58z$K$J$k$^$G$N4|4V!W$H$7$F$7$^$*(B
> $B$&$+$H;W$C$F$$$k$N$G$9$,(B($BD9$$$1$I(B)$B!#(B
 $B8D?ME*$K$OD9$/$F$bJ,$j$d$9$$$N$G!"!V%"%+%&%s%H$,L58z$K$J$k$^$G$N4|4V!W(B
$B$GNI$$$H;W$$$^$9!#(B


> (3) exit code $B$G(B
>   .It EX_CONFIG
>   .Bl -bullet -compact
>   .It
>   No base home directory configured.
> $B$H$$$&$N$,$"$k$N$G$9$,!"$3$l$C$F$I$&$$$&;~$K=P$k%(%i!<$G$7$g$&$+!)!!!V4pK\$N(B
> $B%[!<%`%G%#%l%/%H%j$,%3%s%U%#%.%e%"$5$l$F$$$J$$!W$O$A$H!D!D!#%[!<%`%G%#%l%/%H(B
> $B%j$,E,@Z$G$J$$!"$^$?$OB8:_$7$J$$!"$H$$$&%(%i!<$OB>$K$"$k$s$G$9!#(B
 man 8 pw $B$G$O(B
     EX_OSFILE
           o   Base home directory is invalid or does not exist.
     EX_CONFIG
           o   No base home directory configured.
 $B$G$9$M!#(B

 /usr/src/usr.sbin/pw/pw_user.c $B$N(B pw_user() $B$d(B pw_homepolicy() $B8+$?$H(B
$B$3$m$K$h$k$H!"(B
 o EX_OSFILE $B$O(B /home $B$J$I$N(B base home directory $B$,(B directory $B$G$O$J$$(B
   $B$h$&$J>l9g$K$3$N%(%i!<$H$J$k(B
 o EX_CONFIG $B$O!"(B/etc/pw.conf $B$G%Y!<%9%[!<%`%G%#%l%/%H%j$,;XDj$5$l$F$$(B
   $B$J$$$^$?$O(B "" $B$H$7$F;XDj$5$l$F$$$k>l9g$K$3$N%(%i!<$K$J$k(B
 $BLOMM$G$9(B($B$Q$C$H8+$?$@$1$J$N$G4*0c$$$7$F$k$+$b(B ^_^;)

 $B$s$G!"7o$N$H$3$m$O!"!V%Y!<%9%[!<%`%G%#%l%/%H%j(B($B$G$$$$$+$J!)9)IW$7$F$/(B
$B$i$5$$(B)$B$,;XDj(B($B@_Dj!)(B)$B$5$l$F$$$^$;$s!W$G$7$g$&$+!#(B

 $B$A$J$_$K!"(B/usr/include/sysexits.h $B$K$O(B
/*
 *  SYSEXITS.H -- Exit status codes for system programs.
 *
 *      This include file attempts to categorize possible error
 *      exit statuses for system programs, notably delivermail
 *      and the Berkeley network.
 *
 *      Error numbers begin at EX__BASE to reduce the possibility of
 *      clashing with other exit statuses that random programs may
 *      already return.  The meaning of the codes is approximately
 *      as follows:
...
 *      EX_OSFILE -- Some system file (e.g., /etc/passwd, /etc/utmp,
 *              etc.) does not exist, cannot be opened, or has some
 *              sort of error (e.g., syntax error).
...
#define EX_OSFILE       72      /* critical OS file missing */
...
#define EX_CONFIG       78      /* configuration error */
 $B$H$"$j$^$9!#(B


> (4) FILES $B$N$H$3$m$G(B
>   .It Pa /etc/login.conf
>   The user capabilities database
> $B$H$5$l$F$$$k$N$G$9$,!"2?$+NI$$Lu8l$N0F$O$"$j$^$;$s$+!#85!9$N(B
>    (a) $B%f!<%6FC@-%G!<%?%Y!<%9(B  (jpman v1.2)
> $B$G$b$$$$$s$G$9$,!"$J$K$+NI$$0F$,$"$l$P!#(B
>    (b) $B%m%0%$%s%/%i%9%1!<%Q%S%j%F%#%G!<%?%Y!<%9(B (jpman passwd(1))
 $B8D?ME*$K$O!"(B(a) $B$+!V%f!<%6%1!<%Q%S%j%F%#%G!<%?%Y!<%9!W$G$9$1$I!"$^$+(B
$B$;$^$9!#LdBj$O%1!<%Q%S%j%F%#$,DL$8$k$+$I$&$+$G$9$M!#(B


> (5) $BF1MM$K!"(B/etc/master.passwd.new $B$N@bL@$G!"(Bmaster password file $B$H$$$&$N$,(B
> $B$"$k$s$G$9$,!"$3$l$b$I$&$$$&Lu8l$,$$$$$G$7$g$&$+!)(B
>    (a) $B?F%Q%9%o!<%I%U%!%$%k(B (jpman v1.2)
>    (b) $B%^%9%?%Q%9%o!<%I%U%!%$%k(B
>    (c) $B%Q%9%o!<%I$N%^%9%?%U%!%$%k(B (jpman passwd(1))
 $B$I$l$G$b$=$l$J$j$KJ,$+$C$F!"8m2r$O$J$$$H;W$&$N$G!"$*$^$+$;$7$^$9!#(B


> $B$/$j$d$^(B // kuriyama@opt.phys.waseda.ac.jp
> # 10/29 $B$+$i(B 11/12 $B$^$G%a!<%k$,FI$a$^$;$s(B
 $BB>$NJ}$b$h$m$7$/$*$M$,$$$7$^$9!#(B
--
$BKY@nOBM:(B
