GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
UTMP(5) FreeBSD File Formats Manual UTMP(5)

utmp, wtmp, lastlog
??????????Ͽ

<sys/types.h> <utmp.h>

<utmp.h> ?ե??????ϡ? utmp ?ե??????Ǥθ??ߤΥ桼???ˤĤ??Ƥξ????? wtmp ?ե????????ǤΥ??????????????????Ȥξ????? lastlog ?ե????????Ǥκǽ??????????????ε?Ͽ?Τ????˻Ȥ????빽¤?Τ? ???????Ƥ??ޤ??? ???????ѹ??䥷???åȥ????󤪤??ӥ??֡??ȤΥ????ॹ?????פϡ?Ʊ???褦?? wtmp ?ե??????˵?Ͽ?????ޤ???
#define _PATH_UTMP      "/var/run/utmp"
#define _PATH_WTMP      "/var/log/wtmp"
#define _PATH_LASTLOG   "/var/log/lastlog"

#define UT_NAMESIZE     16
#define UT_LINESIZE     8
#define UT_HOSTSIZE     16

struct lastlog {
        int32_t ll_time;		/* ?桼???????????????󤷤??? */
        char    ll_line[UT_LINESIZE];	/* ü????̾ */
        char    ll_host[UT_HOSTSIZE];	/* ?桼???νпȥۥ??? */
};

struct utmp {
        char    ut_line[UT_LINESIZE];	/* ü????̾ */
        char    ut_name[UT_NAMESIZE];	/* ?桼???Υ???????̾ */
        char    ut_host[UT_HOSTSIZE];	/* ?桼???νпȥۥ??? */
        int32_t ut_time;		/* ?桼???????????????󤷤??? */
};

lastlog ?ե??????ϡ? lastlog ??¤?Τ??????????Ǥ??ꡢ?桼???? UID ?ǥ????ǥå????????Ƥ??ޤ??? utmp ?ե??????ϡ? utmp ??¤?Τ??????????Ǥ??ꡢü?????ֹ? ( ttyslot(3) ????) ?ǥ????ǥå????????Ƥ??ޤ??? wtmp ?ե??????ϡ? utmp ??¤?Τ????????Х??ʥ??????ե??????Ǥ??ꡢ ?ե??????ν?ü???ɵ??????Ƥ????ޤ???

?ǥե????ȤǤϡ??桼???????????󤹤뤿?Ӥˡ? pam_lastlog(8) ?ץ????????? lastlog ?ե????????Υ桼???? UID ?򸡺????ޤ??? ?⤷???Ĥ??ä????硢?桼?????Ǹ??˥??????󤷤??????Υ????ॹ?????ס? ü???????ۥ???̾??ɸ?????Ϥ˽񤭽Ф????ޤ??? pam_lastlog(8) ?ץ????????ϡ????θ? lastlog ?ե??????˿?????????????????????Ͽ???ޤ???

?????? lastlog ?ؤε?Ͽ???񤭽Ф??줿???ǡ? utmp ?ե????뤬?????ץ󤵤졢?桼?????Ф??? utmp ??Ͽ???????????ޤ??? ???ε?Ͽ?ϡ??桼?????????????Ȥ??ƺ????????????ޤ??ݻ??????ޤ??? utmp ?ե??????ϡ? rwho(1), users(1), w(1), who(1) ?ץ????????ǻȤ????ޤ???

???ˡ? pam_lastlog(8) ?ץ????????? wtmp ?ե??????򥪡??ץ󤷡??桼???? utmp ??Ͽ???ɲä??ޤ??? ???θ??桼????ü?????????????????Ȥ????ȡ????̤? utmp ?쥳???ɤ???Ͽ?????ޤ??? ???ʤ??? ut_line ??Ŭ?ڤ????ꤵ?졢 ut_time ???????????ޤ????? ut_name ?? ut_host ?϶??Ǥ??????Τ???Ͽ?????ޤ? ( init(8) ????)?? wtmp ?ե??????ϡ? last(1) ?? ac(8) ?ץ????????ǻȤ????ޤ???

?????ѹ??䥷???åȥ????󡦥??֡??Ȥκݤˤϡ? ?ʲ??ι??ܤ? wtmp ?ե??????˵?Ͽ?????ޤ???

 
?????ƥ??Υ??֡??Ȥ䥷???åȥ????󤬳??Ϥ??줿?? ut_line ?ե??????ɤ? ‘~’ ?ȸ???ʸ?????? ut_name ?ե??????????? reboot ?⤷???? shutdown ????Ͽ?????ޤ? ( shutdown(8) ?? reboot(8) ????)??

?????ƥ????郎??ư?⤷???ϼ?ư?ǹ??????줿 ( date(1) ????)?? ???ޥ???̾ date ???ե??????? ut_name ?˵?Ͽ?????ޤ??? ut_line ?ե??????????? ‘|’ ʸ???ϡ??ѹ????λ????򼨤??? ‘{’ ʸ???Ͽ??????????򼨤??Ƥ??ޤ???

wtmp ?ե??????ϡ?˻?????????ƥ??Ǥϵ?®???礭???ʤ??ޤ??Τǡ? ?????⤷?????轵?????ơ??????󤹤뤳?Ȥ??侩???ޤ??? ???Υե??????ϡ? newsyslog(8) ?ˤ??äƴ????????ޤ???

???????Υե????뤬¸?ߤ??ʤ????硢 pam_lastlog(8) ?Ϥ??????????????ޤ????? ???????Υե??????ϡ???ư?Ǻ???????ɬ?פ??????ޤ???

utmp ?????? wtmp ?Υե????????Ф????̾????????ϡ??󶡤??줿 login(3), logout(3), logwtmp(3) ?桼?ƥ????ƥ??ؿ??ǹԤ??? ???????Υե??????ν񼰤??ۤʤ륷???ƥ??֤Ǥθߴ??????ݻ????٤??Ǥ???

/var/run/utmp
utmp ?ե????롣
/var/log/wtmp
wtmp ?ե????롣
/var/log/lastlog
lastlog ?ե????롣

last(1), w(1), who(1), login(3), logout(3), logwtmp(3), ttyslot(3), ac(8), init(8), pam_lastlog(8)

utmp ?? wtmp ?ե??????񼰤? Version 6 AT&T UNIX ?????о줷?ޤ????? lastlog ?ե??????񼰤? 3.0BSD ?????о줷?ޤ?????
November 14, 2001 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 5 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.