BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: acct acct(accounting) ¼³Á¤Çϱâ Á¶È¸¼ö: 7774


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 2 * * 1-6 /usr/lib/acct/runacct 2> /var/adm/acct/nite/fd2log
15 5 1 * * /usr/lib/acct/monacct

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

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


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


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

# env EDITOR=vi crontab -e adm

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

# /usr/lib/acct/startup

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


5. ½ÇÇàµÈ ÇÁ·Î¼¼½ºµéÀÇ Á¤º¸´Â ´ÙÀ½°ú °°ÀÌ °£´ÜÈ÷ ¾Ë¾Æ º¼ ¼ö ÀÖ´Ù.

# lastcomm
ls root pts/18 0.01 secs Mon Mar 27 17:25
ls root pts/18 0.01 secs Mon Mar 27 17:25
ls root pts/18 0.02 secs Mon Mar 27 17:25
startup root pts/18 0.01 secs Mon Mar 27 17:25
rm root pts/18 0.01 secs Mon Mar 27 17:25


6. acct¸¦ Á¾·áÇÏ´Â ¹æ¹ýÀº ´ÙÀ½°ú °°´Ù.

# /usr/lib/acct/shutacct


7. Âü°í ¹®Çå

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

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

¿¹Á¦)
man acct

°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2002/06/12 12:08 from 210.121.188.5

  truss¸¦ ÅëÇÑ ¿¡·¯ºÐ¼® ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ ¹é¾÷(Backup) ¹æ¹ý  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡