삽질은 나의 힘 | 삽질은 나의 힘
삽질은 나의 힘 위치로그  |  태그  |  미디어로그  |  방명록
icon PAM을 이용한 SMTP-auth 특정사용자 제한(disable SMTP-auth to specified user with PAM)
Server/Linux | 2014. 11. 3. 20:50



참고(reference) : http://www.linux-pam.org/Linux-PAM-html/sag-pam_listfile.html





< 메일 수신을 되게 하면서 발신만 안되게 하고 싶은 경우 ( if specified users only want to receive a mail -> block a heavy mail-sender) >





- 파일 수정 (edit  /etc/alternatives/mta-pam)

#%PAM-1.0

auth      required      pam_listfile.so onerr=fail item=user sense=deny file=/etc/smauth_deny_user  // 한줄( one line )

auth       include      system-auth

account    include      system-auth





- 적용할 사용자파일 생성 ( create a file : /etc/smauth_deny_user )


ex) 

user1     // username

user2

user4





- pam 방식 인증여부 확인 ( confirm PAM  auth-mech )


ex)  if use saslauthd,

/usr/sbin/saslauthd -m /var/run/saslauthd -a pam









'Server > Linux' 카테고리의 다른 글

process memory 특정 주소 dump  (0) 2012.04.18
flush-[major]:[minor] process  (0) 2012.01.12
DSN : Return receipt  (0) 2009.12.07

arrow 트랙백 | 댓글



icon [ AuditConsole ] auditlog 파일 보내기
Security/ModSecurity | 2012. 4. 19. 00:03


mlogc를 통해 실시간 전송하지 않으며, upload 메뉴를 통하여 개별 로그파일 전송하지 않으며


로그수집서버를 둔 상태에서 수동으로 다량의 서버의 auditlog를 전송하는 경우


=> jwall-tools.jar 를 이용하여 로그수집서버에서 각 웹서버의 auditlog들을 수집받은 후 


아래의 명령어 형식으로  shell script 등을 이용하여 일괄 전송시 사용할 수 있습니다.



...

for i in .......

do

java -jar jwall-tools.jar send http://[sensor]:[pass]@[console-host]:[port]/rpc/auditLogReceiver $i (= auditlog-file)

done
...






arrow 트랙백 | 댓글



icon process memory 특정 주소 dump
Server/Linux | 2012. 4. 18. 23:42



1. 해당 PID의 메모리 layout 확인
cat /proc/[pid]/maps

2. gdb로 해당 프로세스에 attach
gdb --pid [pid]

3. 위의 1에서 확인한 특정 구간 부분을 파일로 dump
(gdb) dump memory /root/output 0x00621000 0x00622000



원문 :  http://serverfault.com/questions/173999/dump-a-linux-processs-memory-to-file 


arrow 트랙백 | 댓글



[PREV] [1][2][3][4][···][9] [NEXT]
관리자  |   글쓰기
BLOG main image
분류 전체보기 (27)
Server (4)
Network (3)
Packet Analysis (3)
Security (3)
TroubleShooting (8)
Algorithm (1)
ETC (2)
None (1)
Total :
Today :
Yesterday :
rss
위치로그 : 태그 : 방명록 : 관리자
minSoong-e's Blog is powered by Daum / Designed by plyfly.net