강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

idled 1.16 (설치 및 운영 ) 2/2

작성자 정보

  • 웹관리자 작성
  • 작성일

컨텐츠 정보

본문

icon04.gif <?XML:NAMESPACE PREFIX = O />

9. 환경파일 설정

 

 

[root@kebia_1 lib]# mv idled.cf.template idled.cf          

[root@kebia_1 lib]#

[root@kebia_1 lib]#

[root@kebia_1 lib]# ls -l

total 884

drwxr-xr-x    3 root     root         4096 Jul 26 15:32 .

drwxr-xr-x   32 root     root         4096 Jul 26 15:25 ..

-rw-rw-r--    1 root     root         2872 Jul 26 15:30 idled.cf

-rw-r--r--    1 root     root       174656 Mar 13 12:06 libgd.a

-rwxr-xr-x    1 root     root          462 Mar 13 12:13 libttf.la

lrwxrwxrwx    1 root     root           15 Mar 13 12:13 libttf.so -> libttf.so.2.1.0

lrwxrwxrwx    1 root     root           15 Mar 13 12:13 libttf.so.2 -> libttf.so.2.1.0

-rwxr-xr-x    1 root     root       259175 Mar 13 12:13 libttf.so.2.1.0

-rwxr-xr-x    1 root     root        64340 Mar 13 13:13 libz.a

drwxr-xr-x   15 root     root         4096 Mar 13 14:18 php

-rw-r--r--    1 root     root        24594 Jun  2 01:14 php.ini

-rwxr-xr-x    1 root     root       335553 Mar 16 10:00 popper

[root@kebia_1 lib]#

[root@kebia_1 lib]#

[root@kebia_1 lib]# vi idled.cf

#

# HOW LONG TO SLEEP BETWEEN CHECKS (in seconds):

#

        sleep 120

#

# NUMBER OF SECONDS TO ALLOW FOR IDLE WARNING BEFORE LOGOUT:

#

        warn 300

#

# NUMBER OF MINUTES TO ALLOW FOR IDLE/MULTIPLE/SESSION TIME FOR

# TERMINALS OWNED BY THE PERSON CURRENTLY LOGGED IN ON CONSOLE:

#

# If these are not set at all, or are set to 'normal', then normal

# idle logouts, multiple login logouts, and session limit logouts

# will be in effect.  If set to OFF, then idle logouts, multiple

# login logouts, and session limit logouts will be disabled for

# these terminals.  If they are set, they override the 'timeout',

# 'session', and 'multiples' commands for these terminals.

#

        conswins idle off

        conswins multiple off

        conswins session off

#

# THRESHOLDS FOR MULTIPLE LOGINS AND SESSIONS:

#

# 64 users must be logged on before multiple login checks

        threshold multiple 64

# 10 sessions amongst all users must be active before idled

# will be active for session limits

        threshold session 10

#

# SPECIFY MULTIPLE LOGIN REMOVAL BEHAVIOR

#

# Set to -1 for proportional logouts, being the floor of

# the threshold for multiple divided by the number of different

# users logged on.

"idled.cf" 92L, 2872C

# the threshold for multiple divided by the number of different

# users logged on.

# Set to some other number to specify that each user should

# be able to keep that many tty's.

        multiples -1

#

# IDLE METHOD DETERMINATION:

#

# Set to "userinput" requires that user interact with the tty

# to be determined not idle.  "inputoutput" allows tty output

# to also consider the tty not idle.  If not set, idlemethod

# defaults to userinput.

#

#        idlemethod inputoutput

#

# TIMEOUT RULES:

#

# Set the console idle timeout to 15 minutes before warning

# the user and killing the main login shell 'warn' time

# seconds later if no action is performed by the user.

# (Killing the login shell has everything else cascade

# afterwards).

# Default idle timeout = 60 minutes for normal users.

# Default idle timeout = 120 minutes for group staff

#

      timeout tty console 15

      timeout default 60

#      timeout group staff 120

#      timeout login crider 60

#      timeout file /usr/local/lib/someusers 45

# Timeout for users logged in from 'dopey' will be 15 minutes

#      timeout host dopey 15

#

# REFUSALS:

#

# Immediately kill any logins by user 'stupid'

[root@kebia_1 lib]#

[root@kebia_1 lib]#

[root@kebia_1 lib]#  ls -l

total 884

drwxr-xr-x    3 root     root         4096 Jul 26 15:33 .

drwxr-xr-x   32 root     root         4096 Jul 26 15:25 ..

-rw-rw-r--    1 root     root         2872 Jul 26 15:30 idled.cf

-rw-r--r--    1 root     root       174656 Mar 13 12:06 libgd.a

-rwxr-xr-x    1 root     root          462 Mar 13 12:13 libttf.la

lrwxrwxrwx    1 root     root           15 Mar 13 12:13 libttf.so -> libttf.so.2.1.0

lrwxrwxrwx    1 root     root           15 Mar 13 12:13 libttf.so.2 -> libttf.so.2.1.0

-rwxr-xr-x    1 root     root       259175 Mar 13 12:13 libttf.so.2.1.0

-rwxr-xr-x    1 root     root        64340 Mar 13 13:13 libz.a

drwxr-xr-x   15 root     root         4096 Mar 13 14:18 php

-rw-r--r--    1 root     root        24594 Jun  2 01:14 php.ini

-rwxr-xr-x    1 root     root       335553 Mar 16 10:00 popper

[root@kebia_1 lib]#


icon04.gif

10. idled 데몬 스타트

 

 

[root@kebia_1 lib]# /usr/local/bin/idled

[root@kebia_1 lib]#

[root@kebia_1 lib]#

[root@kebia_1 lib]# ps -ef | grep idled

root     10517     1  0 15:34 ?        00:00:00 /usr/local/bin/idled

root     10538  9822  0 15:34 pts/0    00:00:00 grep idled

[root@kebia_1 lib]#


icon04.gif

11. idled 로그파일 확인

 

 

[root@kebia_1 lib]# cd /var/log

[root@kebia_1 log]#

[root@kebia_1 log]#

[root@kebia_1 log]# ls -l

total 2876

-rw-------    1 root     root            0 Jul 22 04:09 boot.log

-rw-------    1 root     root          166 Jul 21 21:20 boot.log.1

-rw-------    1 root     root            0 Jul  8 04:08 boot.log.2

-rw-------    1 root     root         8881 Jul  7 13:06 boot.log.3

-rw-------    1 root     root        17673 Jun 30 13:09 boot.log.4

-rw-------    1 root     root        54907 Jul 26 15:30 cron

-rw-------    1 root     root        85704 Jul 22 04:02 cron.1

-rw-------    1 root     root        85700 Jul 15 04:02 cron.2

-rw-------    1 root     root        86030 Jul  8 04:02 cron.3

-rw-------    1 root     root        86183 Jul  1 04:02 cron.4

-rw-r--r--    1 root     root         7392 Jul  7 13:05 dmesg

-rw-------    1 root     root            0 Mar 12 04:34 htmlaccess.log

-rw-r--r--    1 root     root          107 Jul 26 15:34 idled.log

-rw-r--r--    1 root     root       155928 Jul 26 14:04 lastlog

-rw-------    1 root     root            0 Jul 22 04:09 maillog

-rw-------    1 root     root            0 Jul 15 04:09 maillog.1

-rw-------    1 root     root            0 Jul  8 04:08 maillog.2

-rw-------    1 root     root            0 Jul  1 04:07 maillog.3

-rw-------    1 root     root            0 Jun 24 04:07 maillog.4

-rw-------    1 root     root            0 Jul 22 04:09 messages

-rw-------    1 root     root            0 Jul 15 04:09 messages.1

-rw-------    1 root     root            0 Jul  8 04:08 messages.2

-rw-------    1 root     root            0 Jul  1 04:07 messages.3

-rw-------    1 root     root            0 Jun 24 04:07 messages.4

-rw-------    1 root     root            0 Jul  1 04:07 netconf.log

-rw-------    1 root     root            0 Jun  1 04:06 netconf.log.1

-rw-------    1 root     root            0 May  1 04:14 netconf.log.2

-rw-------    1 root     root            0 Apr  1 04:05 netconf.log.3

-rw-------    1 root     root            0 Mar 12 04:34 netconf.log.4

drwxr-xr-x    2 root     root         4096 Aug 23  2000 sa

-rw-------    1 root     root            0 Jul 22 04:09 secure

-rw-------    1 root     root            0 Jul 15 04:09 secure.1

-rw-------    1 root     root            0 Jul  8 04:08 secure.2

-rw-------    1 root     root            0 Jul  1 04:07 secure.3

-rw-------    1 root     root            0 Jun 24 04:07 secure.4

-rw-r--r--    1 root     root           23 Jul 21 21:20 snmpd.log

-rw-------    1 root     root            0 Jul 22 04:09 spooler

-rw-------    1 root     root            0 Jul 15 04:09 spooler.1

-rw-------    1 root     root            0 Jul  8 04:08 spooler.2

-rw-------    1 root     root            0 Jul  1 04:07 spooler.3

-rw-------    1 root     root            0 Jun 24 04:07 spooler.4

-rw-r--r--    1 root     root            0 Aug 23  2000 statistics

-rw-rw-r--    1 root     utmp       284160 Jul 26 15:34 wtmp

-rw-rw-r--    1 root     utmp        72960 Jun  7 19:33 wtmp.0607

-rw-rw-r--    1 root     utmp      1191168 Jun 30 14:34 wtmp.1

-rw-------    1 root     root       168321 Jul 26 15:33 xferlog

-rw-------    1 root     root       211594 Jul 21 11:47 xferlog.1

-rw-------    1 root     root       203870 Jul 14 14:12 xferlog.2

-rw-------    1 root     root        92618 Jul  7 14:19 xferlog.3

-rw-------    1 root     root       151203 Jun 30 13:47 xferlog.4

[root@kebia_1 log]#

[root@kebia_1 log]#

[root@kebia_1 log]# cat idled.log

Thu Jul 26 15:34:13 2001  idled version 1.16 started.

Thu Jul 26 15:34:13   Reading in configuration file.

[root@kebia_1 log]#

[root@kebia_1 log]#

[root@kebia_1 log]#

[root@kebia_1 log]#

[root@kebia_1 log]#

[root@kebia_1 log]#

[root@kebia_1 log]# w

  3:34pm  up 19 days,  2:29,  2 users,  load average: 0.00, 0.00, 0.00

USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT

papa     pts/0    211.220.193.134   2:04pm  0.00s  0.25s  0.05s  w

han1380  pts/15   211.220.55.205    1:07pm  2:26m  0.06s  0.06s  -bash

[root@kebia_1 log]#


icon04.gif

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,045 명
  • 현재 강좌수 :  35,861 개
  • 현재 접속자 :  77 명