사용자가 지정한 횟수이상 로그인에 실패했을 경우 lock 거는 방법

○ /etc/pam.d/system-auth 파일에 다음 라인 추가

auth        required        /lib/security/pam_tally.so onerr=fail no_magic_root
account     required        /lib/security/pam_tally.so deny=지정횟수 no_magic_root reset
 
○ lock를 푸는 방법

# faillog -u 사용자명 -r

※ 출처 : http://hprc.co.kr/description.aspx?id=2007082007745748001

반응형
Posted by She쥐포s

2007. 11. 1. 14:32 Unix/HP-UX

Volume 합치기

○ 두개의 logical volume 이 있는 상황에서 하나의 logical volume으로 만들고자 한다.

# bdf                                                                  : 작업전 용량확인
# umount /fs1                                                      : 없앨 logical volume unmount
# lvremove /dev/vg01/lvol1                                   : logical volume 제거

The logical volume "/dev/vg01/lvol1" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg01/lvol1" has been successfully removed.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

# lvextend -L 51136 /dev/vg01/lvol2                          : logical volume 용량 확장
Logical volume "/dev/vg01/lvol2" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

# fsadm -F vxfs -b 51136M /fs2                                 : defragmentation
UX:vxfs fsadm: INFO: V-3-23585: /dev/vg01/rlvol2 is currently 31391744 sectors - size will be increased

# bdf                                                                     : 작업후 용량확인
# lvdisplay -v /dev/vg01/lvol2                                  : logical volume 정보보기

반응형
Posted by She쥐포s

○ Hard Links
  - 동일 Filesystem에서만 가능
  - Original file이 지워져도 사용가능(link된 file)
  - 같은 inode를 갖음

○ Symbolic links
  - Filesystem이 달라도 상관없음
  - Original file이 지워질 경우 access 안됨
  - 다른 inode를 갖음
  - Original File에 비해 access time이 느림(왜? 해당 파일에 대한 포인터(?)를 처리한 후
    access하므로)

반응형
Posted by She쥐포s

블로그 이미지
She쥐포s
Yesterday
Today
Total

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 올라온 글

최근에 달린 댓글

글 보관함