반응형

AIX에서 시간 동기화 하기

 

1. TZ 설정(직접 설정)
    AIX 6.1 이상
    > smitty chtz_user
    AIX 6.1 미만
    > smitty chtz

2. 세부 설정
   # smitty chtz_date (1번 항목의 내용도 포함됨)
   Change Time Zone Using User Inputted Values

   Standard Time ID(only alphabets) : KORST
   Standard Time Offset from CUT : -9

3. 리부팅
   # rebooting

4. 시간 동기화
   # setclock time.bora.net
    - or (IP를 직접 입력) -
   # setclock  203.248.240.140

반응형

'OS > AIX' 카테고리의 다른 글

SSHD 서버 설치  (0) 2012.11.07
AIX VNC 설정하기  (2) 2012.07.26
AIX 칩입 확인 해보자 !  (0) 2011.03.23
IBM JVM -Xloratio 옵션  (0) 2011.03.03
날짜 관련 얻기  (0) 2011.03.02
반응형


vnc-3.3.3r2-6.aix5.1.ppc.rpm


VNC 설치 오류 관련

참조 : http://thomas.patrickdepinguin.com/knowledgebase/clearcase



AIX VNC 설치 : 

http://blog.daum.net/netflow/16904684

http://hermestop.tistory.com/123


root 로 


rpm -Uvh vnc-3.3.3r2-6.aix5.1.ppc.rpm


가동은 vncserver / 중지는 kill로..


ps -ef | grep vnc 을 통해 -port 옵션이 포트 정보임.


~/.vnc 디렉토리에


xstartup 파일 변경 내역(폰트 오류 뜨는것 포함)


===============================  설정 시작 ===================================



#!/bin/sh


xrdb $HOME/.Xresources

#xsetroot -solid grey

#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#twm &



export LANG=C;

export LC_ALL=C;

export LC_TYPE=C;


# This line gives you a CDE desktop when you sign on to VNC


/usr/dt/bin/dtsession &


============================== 설정 종료 =====================================


ORACLE 계정의 .profile 파일안에


export DISPLAY=localhost:1 

을 추가해야만.. xclock or dbca 등 명령어들이 상콤하게 잘 뜬다...

==============================================================================

반응형

'OS > AIX' 카테고리의 다른 글

SSHD 서버 설치  (0) 2012.11.07
AIX 서버 시간 설정 하기  (0) 2012.08.06
AIX 칩입 확인 해보자 !  (0) 2011.03.23
IBM JVM -Xloratio 옵션  (0) 2011.03.03
날짜 관련 얻기  (0) 2011.03.02
반응형


OS : IBM AIX 5.3 64 bit


프로젝트 홈페이지 : http://www.rootkit.nl/projects/rootkit_hunter.html
소스 다운로드 : http://sourceforge.net/projects/rkhunter/

이글을 쓰는 시점에 rootkit hunter 은 1.3.8 까지 나와있었다.

어느날 AIX 시스템내에 뭔가 불순한(?) 움직이 포착되었다...

뭐... 대부분 AIX 시스템 내부로 구축할 정도면

약간(?)의 규모 이상이라고 생각되며,

차라리 거대한 시스템이라면 방화벽, 네트워크 장비 정책등 훌륭히 갖추어 졌겠지만,

항상 문제는 아주 작지도 아주 크지도 않은 어설픈 시스템에 해당되는 사항이다.

3일동안 열심히 삽질했다...

1.3.8 버젼을 설치하고나선... 안되는것이었다 -_-ㅋ

아래와 같이

> rkhunter -c
Invalid BINDIR configuration option: Invalid directory found: .

업데이트도 해보고 갖은 것을 모두 해봤지만, 실행이 되질 않았따. -_-...

결국은 포기하고 그 이전버젼을 다운로드 받으려고 하는 순간.... 소스포지에서는 1.3.8버젼 밖에 안되는것이었다... 헉 -_-...

그래서 1.3.6을 어렵게 구해서 해보니 잘되었다.... -_-... 내 3일 ㅜㅜ

설치 방법과 절차이다.

1. 시스템 필요 요소
    - 호환되는 시스템이어야 한다.(홈페이지참조) -> 거의 리눅스 계열은 다 된다고 보면 됨..
    - BASH 쉘

2. 사전 준비
    a. BASH 쉘 설치하기
        - www.ibm.com 으로 가서 검색을 열심히 하면 찾을수 있다 -_-... 매번 헷갈린다. 이문서의 제일 위에 있는 bash-3.0-1.aix5.1.ppc.rpm 파일을 다운로드 받아 서버로 전송한다.
        - rpm 으로 되어 있기 때문에
          root로
          rpm -ivh bash-3.0-1.aix5.1.ppc.rpm 명령을 통해 설치하면 끝.... 
          $> bash 입력
          $> echo $SHELL ==> bash가 나오면 정상 설치 완료
     b. lynx or wget 등 설치하기
         - 검색 정보에 대한 데이터베이스를 웹을 통해 가지고 오는데 위의 해당 프로그램들이 설치되어 있지 않으면
           정보를 update하지 못한다.
         - rpm파일로 되어 있기 때문에 위의 a의 내용 참고
     c. rkhunter-1.3.6.tar.gz 파일을 설치하기(root로 실행)
         - 서버로 upload 로드 뒤
         - gzip 명령을 통해 압축을 푼다.
            gzip -d rkhunter-1.3.6.tar.gz
         - tar로 묶여져 있는 파일을 푼다.
            tar xvf rkhunter-1.3.6.tar
         - 설치하기
            위의 tar를 풀면 rkhunter-1.3.6 디렉토리 안에
            installer.sh 파일이 존재하며
           다음과 같이 간단히 설치할수 있다.
           $> installer.sh --install
            /usr/local/bin/rkhunter 파일이 생성된다.(기본 설치시...)
 $> installer.sh --install
Checking system for:
 Rootkit Hunter installer files: found
 A web file download command: wget found
Starting installation:
 Checking installation directory "/usr/local": it exists and is writable.
 Checking installation directories:
  Directory /usr/local/share/doc/rkhunter-1.3.6: creating: OK
  Directory /usr/local/share/man/man8: exists and is writable.
  Directory /etc: exists and is writable.
  Directory /usr/local/bin: exists and is writable.
  Directory /usr/local/lib: exists and is writable.
  Directory /var/lib: exists and is writable.
  Directory /usr/local/lib/rkhunter/scripts: creating: OK
  Directory /var/lib/rkhunter/db: creating: OK
  Directory /var/lib/rkhunter/tmp: creating: OK
  Directory /var/lib/rkhunter/db/i18n: creating: OK
 Installing check_modules.pl: OK
 Installing filehashmd5.pl: OK
 Installing filehashsha1.pl: OK
 Installing filehashsha.pl: OK
 Installing stat.pl: OK
 Installing readlink.sh: OK
 Installing backdoorports.dat: OK
 Installing mirrors.dat: OK
 Installing programs_bad.dat: OK
 Installing suspscan.dat: OK
 Installing rkhunter.8: OK
 Installing ACKNOWLEDGMENTS: OK
 Installing CHANGELOG: OK
 Installing FAQ: OK
 Installing LICENSE: OK
 Installing README: OK
 Installing language support files: OK
 Installing rkhunter: OK
 Installing rkhunter.conf: OK
Installation complete

3. 유해 사항을 검색해 보기
  $> /usr/local/bin/rkhunter -c (root로 실행) 명령을 통해 유해사항을 검색가능하며, /var/log/rkhunter.log 파일에 모든 사항이 상세하게 기재된다.

 [ Rootkit Hunter version 1.3.6 ]

Checking system commands...

  Performing 'strings' command checks
    Checking 'strings' command                               [ Warning ]

  Performing 'shared libraries' checks
    Checking for preloading variables                        [ None found ]
    Checking for preloaded libraries                         [ None found ]
    Checking LD_LIBRARY_PATH variable                        [ Not found ]

  Performing file properties checks
    Checking for prerequisites                               [ Warning ]
    /usr/bin/awk                                             [ OK ]
    /usr/bin/basename                                        [ OK ]
    /usr/bin/bash                                            [ OK ]
    /usr/bin/cat                                             [ OK ]
    /usr/bin/chmod                                           [ OK ]
    /usr/bin/chown                                           [ OK ]
    /usr/bin/cp                                              [ OK ]
    /usr/bin/csh                                             [ OK ]
    /usr/bin/cut                                             [ OK ]
    /usr/bin/date                                            [ OK ]
    /usr/bin/df                                              [ OK ]
    /usr/bin/diff                                            [ OK ]
    /usr/bin/dirname                                         [ OK ]
    /usr/bin/du                                              [ OK ]
    /usr/bin/echo                                            [ OK ]
    /usr/bin/ed                                              [ OK ]
    /usr/bin/egrep                                           [ OK ]

생략 .............

System checks summary
=====================

File properties checks...
    Required commands check failed
    Files checked: 95
    Suspect files: 7

Rootkit checks...
    Rootkits checked : 234
    Possible rootkits: 1
    Rootkit names    : Possible rootkit component

Applications checks...
    Applications checked: 3
    Suspect applications: 2

The system checks took: 40 minutes and 18 seconds

All results have been written to the log file (/var/log/rkhunter.log)

One or more warnings have been found while checking the system.
Please check the log file (/var/log/rkhunter.log)



반응형

'OS > AIX' 카테고리의 다른 글

AIX 서버 시간 설정 하기  (0) 2012.08.06
AIX VNC 설정하기  (2) 2012.07.26
IBM JVM -Xloratio 옵션  (0) 2011.03.03
날짜 관련 얻기  (0) 2011.03.02
AIX 5.3 OPENSSH INSTALL  (0) 2011.02.16
반응형
설치 필요파일

1. zlib
   http://www.gzip.org/zlib/

2. openssl
http://www.openssl.org/

3. openssh


http://sourceforge.net/projects/openssh-aix/
반응형

'OS > AIX' 카테고리의 다른 글

IBM JVM -Xloratio 옵션  (0) 2011.03.03
날짜 관련 얻기  (0) 2011.03.02
bff 파일 설치 (AIX)  (0) 2010.12.08
IBM AIX 용 JAVA 다운로드 주소  (0) 2010.12.07
AIX 5.3에서 Tomcat 설치 및 기본 홈 디렉토리 변경  (1) 2010.12.07
반응형

.bff 파일은 AIX 시스템에서는

다음과 같이 설치가능하다.

1. java1.4.2.bff 파일을 FTP를 사용하여 AIX 시스템에 upload(/tmp/java14/)

2. root로 접근하여 smitty install or smitty installp 하여 해당 디렉토리(/tmp/java14/)를 설치하면
   자동으로 설치됨.
반응형

'OS > AIX' 카테고리의 다른 글

날짜 관련 얻기  (0) 2011.03.02
AIX 5.3 OPENSSH INSTALL  (0) 2011.02.16
IBM AIX 용 JAVA 다운로드 주소  (0) 2010.12.07
AIX 5.3에서 Tomcat 설치 및 기본 홈 디렉토리 변경  (1) 2010.12.07
AIX 시스템 점검 쉘  (0) 2010.06.04
반응형
반응형

'OS > AIX' 카테고리의 다른 글

AIX 5.3 OPENSSH INSTALL  (0) 2011.02.16
bff 파일 설치 (AIX)  (0) 2010.12.08
AIX 5.3에서 Tomcat 설치 및 기본 홈 디렉토리 변경  (1) 2010.12.07
AIX 시스템 점검 쉘  (0) 2010.06.04
Xmanager on AIX 5.3  (1) 2010.02.09
반응형

보안 위배 사항을 나열해 주는 점검쉘...

대기업에서 만든 버젼인데...

유출을 걱정했는지,

분석구분은 안들어있고

조회만 하넹...

걍 내가 만든게 더 나을꺼 같다 -_-;

반응형
반응형


아래의 글 참고

How to install/start/restart the X11 server under AIX

기본적으로

lssrc -s dtsrc 명령(root로 실행)을 실행 했을 때 actvie 상태여야만 한다.

1. hosts 파일 세팅
   서버 PC의 /etc/hosts 파일에 접속할 IP정보를 추가한다.
   예) 접속할 IP : 100.1.1.10 
   100.1.1.10       client_pc
  

2. ping TEST 수행
   #> ping client_pc 했을 때 정상적으로 조회된다면 문제가 없으나 대부분의 경우는 이부분에서 문제가 발생함...
       즉 실제로는 100.1.1.10 IP가 조회되어야 하나 이상한 IP로 조회되는 경우가 있음.
        문제는 DNS 정보를 서버의 hosts 파일보다 먼저 찾기 때문에 발생
        아래와 같이 수정 가능
       /etc/netsvc.conf 파일을 수정
       제일 아래줄에 
       hosts=local,bind 로 추가
반응형
반응형

Now, this one was pretty frustrating, especially with a DBA demanding X11 access to an AIX server so that he could install on it...

Here is how to do it:

1. Check that the X11 server is installed

This can be done with the following command:

# lslpp -l | grep -i X11.Dt

If X11 is installed on an AIX machine, the above command should return (more or less):

andre@galactus$ lslpp -l | grep -i x11.dt
  X11.Dt.ToolTalk           5.3.0.60  COMMITTED     AIX CDE ToolTalk Support
  X11.Dt.bitmaps             5.3.0.0  COMMITTED     AIX CDE Bitmaps
  X11.Dt.helpmin             5.3.0.0  COMMITTED     AIX CDE Minimum Help Files
  X11.Dt.helprun             5.3.0.0  COMMITTED     AIX CDE Runtime Help
  X11.Dt.lib                5.3.0.60  COMMITTED     AIX CDE Runtime Libraries
  X11.Dt.rte                5.3.0.60  COMMITTED     AIX Common Desktop Environment
  X11.Dt.ToolTalk           5.3.0.60  COMMITTED     AIX CDE ToolTalk Support
  X11.Dt.bitmaps             5.3.0.0  COMMITTED     AIX CDE Bitmaps
  X11.Dt.helpmin             5.3.0.0  COMMITTED     AIX CDE Minimum Help Files
  X11.Dt.rte                5.3.0.60  COMMITTED     AIX Common Desktop Environment

If not, you need to install the X11 server. See below.

2. Installing the X11 server on an AIX machine

The X11 packages are on the #2 AIX installation CD, in the /installp/ppc/ directory.

To search for the proper package, once the CD has been installed in the CD-ROM drive of your AIX machine, you can issue the following commands:

# find /cdrom1 -name *dt* /cdrom1/installp/ppc/X11.adt /cdrom1/usr/sys/inst.images/X11.adt

Here, of course, the CD-ROM drive is mounted under /cdrom1.

If we list this directory, here is the content:

# cd /cdrom1/installp/ppc/
# ls
.toc                     X11.help.en_US           csm.gui.dcem_1.6.0.10
Java14.license           X11.loc.en_US            invscout.websm
Java14.sdk               X11.man.en_US            sysmgt.help.en_US
Java5.sdk                X11.motif                sysmgt.help.msg.en_US
X11.Dt                   X11.msg.en_US            sysmgt.msg.en_US.sguide
X11.Dt.other             X11.samples              sysmgt.msg.en_US.websm
X11.adt                  X11.vfb                  sysmgt.sguide
X11.apps                 X11.vsm                  sysmgt.websm
X11.base                 bos.aixpert              sysmgt.websm.diskarray
X11.compat.X11R5         bos.ecc_client           sysmgtlib.framework
X11.compat.other         bos.installers           sysmgtlib.libraries
X11.fnt                  csm.gui.dcem

Now, to install with smitty, type smitty as root, and go to "Software installation > Install software".

Next, select your CD-ROM device, and check the following configuration is correct:

                                Install Software

Type or select values in entry fields.       
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
* INPUT device / directory for software               /dev/cd1
* SOFTWARE to install                                [+ 5.3.0.60  AIX CDE A> +
  PREVIEW only? (install operation will NOT occur)    no                     +
  COMMIT software updates?                            yes                    +
  SAVE replaced files?                                no                     +
  AUTOMATICALLY install requisite software?           yes                    +
  EXTEND file systems if space needed?                yes                    +
  OVERWRITE same or newer versions?                   no                     +
  VERIFY install and check file sizes?                yes                    +
  Include corresponding LANGUAGE filesets?            yes                    +
  DETAILED output?                                    yes                    +
  Process multiple volumes?                           yes                    +
  ACCEPT new license agreements?                      yes                    + 
  PREVIEW new LICENSE agreements?                     no                     +

F1=Help             F2=Refresh          F3=Cancel           F4=List
F5=Reset            F6=Command          F7=Edit             F8=Image
F9=Shell            F10=Exit            Enter=Do                    

In the SOFTWARE to install, press "F4" (=List) and select all the CDE packages, using the list of packages above as a guide.

Next, press ENTER and the installation should proceed correctly.

3. How to start the X11 server

There are several possibilities here. Please keep in mind that I was trying to have a minimal X11 server, to allow one user to connect. I was not so much interested in correctness...

Two possibilities:

  • Use the dtlogin command as shown below:
# /usr/dt/bin/dtlogin -daemon
  • Use the /etc/rc.dt script as shown below:
# /etc/rc.dt

This script has the advantage of launching a full X11 environment, including a login prompt on the console.

In both cases, you can check the X11 server is running correctly with the following command:

andre@galactus$ ps -fe | grep -i dtlogin | grep -v grep root 94310 1 0 26 sep - 0:00 /usr/dt/bin/dtlogin -daemon root 147544 94310 0 26 sep - 0:00 dtlogin <:0> -daemon

4. Restart X11 in case of a crash or a misbehaving server

Please make sure you go through the entire list. This is a bit tedious, but it works very well, so make sure you go through all the steps and don't try to skip one...

  • Stop all "rc.bootx" processes:
# ps -fe | grep -i rc.bootx # kill -9 <rc.bootx PIDs>

WARNING: If there are ANY "rc.bootx" processes, they MUST be stopped before anything else!

  • Stop all "dtlogin" processes:
# ps -fe | grep -i dtlogin # kill -9 <dtlogin PIDs>

WARNING: Make sure there are no processes attached to the "dtlogin" processes...

  • Delete all temporary files:
cd /var/dt rm Xerrors rm Xpid

Sometimes, it could be interesting to keep a copy of the Xerrors file...

  • Check available space under /var and /tmp:

For instance:

-bash-3.00$ df -g /var /tmp Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/hd9var 1.02 0.29 72% 556 1% /var /dev/hd3 3.05 2.28 26% 1726 1% /tmp

This space-checking stage is optional, but you never know... :-)

  • Check that the "dtsrc" service is inoperative:

Do this with the following command:

$ lssrc -s dtsrc Subsystem Group PID Status dtsrc inoperative
  • Restart the service with "/etc/rc.dt" :
# /etc/rc.dt
  • Check that the "dtlogin" service is running:
bash-2.05b$ ps -fe | grep -i dtlogin | grep -v grep root 65704 1 0 Sep 09 - 0:00 /usr/dt/bin/dtlogin -daemon root 74118 65704 0 Sep 09 - 0:00 dtlogin <:0> -daemon
  • Check that the service is marked as "active":
bash-2.05b$ lssrc -s dtsrc Subsystem Group PID Status dtsrc active

See Also:


 출처 : http://www.gilandre.net/cgi-bin/wiki.cgi/AIXServerX11

반응형
반응형

#echo $ODMDIR /etc/objrepos에 있어야 함

# odmget -q attribute=route CuAt  <- 여기에 route 정보들을 가진 ODM stanza가 나열됨.

## 아래 예 ##
CuAt:
        name = "inet0"
        attribute = "route"
        value = "net,-hopcount,0,,0,165.244.227.1"
        type = "R"
        generic = "DU"
        rep = "s"
        nls_index = 0

CuAt:
        name = "inet0"
        attribute = "route"
        value = "net,-hopcount,0,,0,165.244.226.1"
        type = "R"
        generic = "DU"
        rep = "s"
        nls_index = 0

해당하는 default gateway를 반드시 확인하고 잘못된 route 정보들을 ODM에서 지우기 위해서는

#  odmget -q attribute=route CuAt  에서 나온 정보 중 value 값을 copy 해서 지웁니다.

value 부분을 쓸때는 따옴표를 주의

#  odmdelete -q "value=net,-hopcount,0,,0,165.244.226.1" -o CuAt

0518-307 odmdelete: 1 objects deleted.


정확히 확인을 위해서 다시 odmget을 통하여 default value 확인

# odmget -q attribute=route CuAt 

CuAt:
        name = "inet0"
        attribute = "route"
        value = "net,-hopcount,0,,0,165.244.227.1"
        type = "R"
        generic = "DU"
        rep = "s"
        nls_index = 0
#

마지막으로 netstat -nr을 통하여 route 정보 확인
여기서는 route delete option을 통하여 삭제

반응형

+ Recent posts