account ¼³Á¤Çϱâ
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-12-14 00:31:13
 

1. rc È­ÀÏÀ» ÁöÁ¤ÇÑ´Ù.

# ln /etc/init.d/acct /etc/rc2.d/S22acct
# ln /etc/init.d/acct /etc/rc0.d/K22acct


2. cron ÀÛ¾÷À» µî·ÏÇÑ´Ù.

2.1 /var/spool/cron/crontab/adm È­ÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ëÀ» Ãß°¡ÇÑ
´Ù.

0 * * * * /usr/lib/acct/ckpacct
0 1 * * 1-6 /usr/lib/acct/dodisk
0 0 * * 1-6 /usr/lib/acct/runacct 2> /var/adm/acct/nite/fd2log
15 5 1 * * /usr/lib/acct/monacct

½Ã°£µéÀº »ç¿ëÀÚÀÇ ¸ñÀû¿¡ ¸Â°Ô º¯°æÇÒ ¼ö ÀÖ´Ù.

2.2 (¸¸¾à adm »ç¿ëÀÚ·Î µî·ÏÀ» ÇϼÌÀ¸¸é ¸é root¿¡ µî·ÏÇÏÁö ¾ÊÀ¸¼Å
µµ µË´Ï´Ù.) /var/spool/cron/crontab/root È­ÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ë
À» Ãß°¡ÇÑ´Ù.


3. ½Ã½ºÅÛÀ» rebootÇÏ¸é º¯°æ»çÇ×ÀÌ Àû¿ëµÈ´Ù.


4. ½Ã½ºÅÛÀ» rebootÇÏÁö ¾Ê°í accountingÀ» Àû¿ëÇÏ·Á¸é 2¹ø cron ÀÛ
¾÷À»

# env EDITOR=vi crontab -e adm

À» ½ÇÇàÇÏ¿© µî·ÏÇÏ°í,

# /usr/lib/acct/startup

¸¦ ½ÇÇà½ÃŲ´Ù.


5. Âü°í ¹®Çå

½Ã½ºÅÛ¿¡ ¼³Ä¡µÈ ¸Þ´º¾ó ÆäÀÌÁö¸¦ Âü°íÇÑ´Ù.

acct(1M), acctsh(1M), lastcomm(1)

¿¹Á¦)
man acct


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦