kshell port no 544
rlogin port no 513
rshell port no 514


어이없는게 rshell 세팅이 되어있지 않아도. 커버로스 아이디에 인증 (~/.k5login) 만 되어있으면
rsh 접속이 가능하다. 커버로스가 rsh 에 비해서 우선권이 있는듯 하다 (추측)

[root@xxx121 ~]# rsh xxxx8
klogind: User xxxxxxx@NAVER.COM is not authorized to login to account root.
Trying krb4 rlogin...
krb_sendauth failed: You have no tickets cached
trying normal rlogin (/usr/bin/rlogin)
Last login: Mon Jan 24 11:37:37 from xxxx12.hangame.com
[root@xxxx8 ~]#

* 커버로스 인증 아이디를 삭제후, rsh 만 설정했을때 나는 오류메시지와 접속화면이다.


* 참고로 rsh 세팅방법
1. ntsysv 에서 rsh, rlogin 서비스 open
또는 /etc/xinetd.d/rsh 와 rlogin 파일에서 disable = no 로 설정

2. /etc/hosts.equiv 에 rsh 접속을 할 클라이언트 호스트네임 설정 (/etc/hosts 와 같아야함)

3. /etc/init.d/xinetd restart

여기까지는 암호입력후 접속가능

암호없이 접속가능하게 설정하는 방법

4. ~/.rhosts 에 /etc/hosts.equiv 와 같은 접속할 클라이언트 호스트네임 적어줌

5. /etc/pam.d/rsh 와 rlogin 을 열어서 pam_securetty.so 에 해당되는 줄을 주석처리

<출처:http://kkanari.egloos.com/1837690>

[출처] klogin 과 rlogin|작성자 델팽이


'LinuX' 카테고리의 다른 글

고급 Linux 커맨드 마스터 가이드  (0) 2009.06.23
Linux find 명령어 완전 정복 가이드  (0) 2009.06.18
linux 파티션 나누기  (0) 2009.05.08
Cron  (0) 2008.11.24
USB 휴대용 저장 장치 마운트  (0) 2008.09.08

[출처] http://ask.nate.com/qna/view.html?n=5644131


파티션을 나누기 위해서는 fdisk 명령어를 사용하시면 됩니다

 1. 파티션 확인

 

    1)fdisk -l /dev/hda  

       -> /dev/hda 의 파티션 내용을 확인한다.생략하면 모든 하드드라이브의 파티션을 보여준다.

 

[root@linux root]#fdisk -l

 

 Disk /dev/hda: 80.0 GB, 80060424192 bytes
 255 heads, 63 sectors/track, 9733 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

 Device        Boot   Start   End         Blocks        Id    System
 /dev/hda1     * 1            3824         30716248+     7    HPFS/NTFS
 /dev/hda2            3825   5099         10241437+   83     Linux
 /dev/hda3            5100   5230         1052257+    82     Linux swap
 /dev/hda4            5231   9733         36170347+    5     Extended
 /dev/hda5            5231   7055         14659281     fd     Linux raid autodetect
 /dev/hda6            7056   8880         14659281     fd     Linux raid autodetect
 /dev/hda7            8881   9003         987966       83     Linux

 

 2.  파티션 활용

 

 1)fdisk 실행

 

 [root@linux root]#fdisk /dev/hda  -> /dev/hda 파티션을 설정하기위해 실행

  The number of cylinders for this disk is set to 9733.
  There is nothing wrong with that, but this is larger than 1024,
  and could in certain setups cause problems with: 
  1) software that runs at boot time (e.g., old versions of LILO)
  2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)

  Command (m for help): p <-- 'p' 명령은 현재 파티션정보를 보여준다.('fdisk -l' 과 같음)  

 

  Disk /dev/hda: 80.0 GB, 80060424192 bytes
 255 heads, 63 sectors/track, 9733 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

 Device        Boot   Start   End         Blocks        Id    System
 /dev/hda1     * 1            3824         30716248+     7    HPFS/NTFS
 /dev/hda2            3825   5099         10241437+   83     Linux
 /dev/hda3            5100   5230         1052257+    82     Linux swap
 /dev/hda4            5231   9733         36170347+    5     Extended
 /dev/hda5            5231   7055         14659281     fd     Linux raid autodetect
 /dev/hda6            7056   8880         14659281     fd     Linux raid autodetect
 /dev/hda7            8881   9003         987966       83     Linux


 

 2)새 파티션 생성하기

 

  Command (m for help): n <-- 'n' 명령은 새파티션생성시 쓰인다.
  First cylinder (9004-9733, default 9004):  <-- 시작실린더지점지정 그냥[enter]하면 default값.
  Using default value 9004
  Last cylinder or +size or +sizeM or +sizeK (9004-9733, default 9733): +100m
   <-- 끝나는실린더지정 혹은 직접 사이즈 지정할수 있다.

 

  Command (m for help): p <-- 확인  

 

  Disk /dev/hda: 80.0 GB, 80060424192 bytes
 255 heads, 63 sectors/track, 9733 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

 Device        Boot   Start   End         Blocks        Id    System
 /dev/hda1     * 1            3824         30716248+     7    HPFS/NTFS
 /dev/hda2            3825   5099         10241437+   83     Linux
 /dev/hda3            5100   5230         1052257+    82     Linux swap
 /dev/hda4            5231   9733         36170347+    5     Extended
 /dev/hda5            5231   7055         14659281     fd     Linux raid autodetect
 /dev/hda6            7056   8880         14659281     fd     Linux raid autodetect
 /dev/hda7            8881   9003         987966       83     Linux

 /dev/hda8            9004   9016         104391       83     Linux

   새로 생성된 파티션

 

 3) 파티션 삭제

 

 Command (m for help): d <-- 'd'명령은 파티션을 삭제하는 명령.

 

 Command (m for help): p <-- 확인  

 

  Disk /dev/hda: 80.0 GB, 80060424192 bytes
 255 heads, 63 sectors/track, 9733 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

 Device        Boot   Start   End         Blocks        Id    System
 /dev/hda1     * 1            3824         30716248+     7    HPFS/NTFS
 /dev/hda2            3825   5099         10241437+   83     Linux
 /dev/hda3            5100   5230         1052257+    82     Linux swap
 /dev/hda4            5231   9733         36170347+    5     Extended
 /dev/hda5            5231   7055         14659281     fd     Linux raid autodetect
 /dev/hda6            7056   8880         14659281     fd     Linux raid autodetect
 /dev/hda7            8881   9003         987966       83     Linux

 

 4)파티션의 system`id 지정

 

Command (m for help): t <-- ' t ' 명령은 system`id지정하는 명령
Partition number (1-8): 8 <-- 파티션 선택 (8은 /dev/hda8)
Hex code (type L to list codes): L <-- ' L ' 명령은 system`id 의 LIST 를 보여준다.


0 Empty                    1c Hidden Win95 FA  70 DiskSecure Mult bb Boot Wizard hid
1 FAT12                    1e Hidden Win95 FA  75 PC/IX be Solaris boot
2 XENIX root              24 NEC DOS            80 Old Minix c1 DRDOS/sec (FAT-
3 XENIX usr               39 Plan 9                 81 Minix / old Lin c4 DRDOS/sec (FAT-
7 HPFS/NTFS            42 SFS                   85 Linux extended db CP/M / CTOS / .

                                               *

                                               *

                                               *

                                               *

                                               *
17 Hidden HPFS/NTF  63 GNU HURD or Sys ab Darwin boot fd Linux raid auto
18 AST SmartSleep     64 Novell Netware    b7 BSDI fs fe LANstep
1b Hidden Win95 FA    65 Novell Netware    b8 BSDI swap ff BBT


 

Hex code (type L to list codes): fd <-- 원하는 코드를 입력 (fd  는 raid 이다)
Changed system type of partition 8 to fd (Linux raid autodetect)

 

Command (m for help): p <-- 확인  

 

  Disk /dev/hda: 80.0 GB, 80060424192 bytes
 255 heads, 63 sectors/track, 9733 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes

 Device        Boot   Start   End         Blocks        Id    System
 /dev/hda1     * 1            3824         30716248+     7    HPFS/NTFS
 /dev/hda2            3825   5099         10241437+   83     Linux
 /dev/hda3            5100   5230         1052257+    82     Linux swap
 /dev/hda4            5231   9733         36170347+    5     Extended
 /dev/hda5            5231   7055         14659281     fd     Linux raid autodetect
 /dev/hda6            7056   8880         14659281     fd     Linux raid autodetect
 /dev/hda7            8881   9003         987966       83     Linux
 /dev/hda8            9004   9016         104391        fd    Linux raid autodetect

                                                                      system`id 가 변경됨을 알수 있다.

 

 5) 파티션 저장 하고 나가기

 

   Command (m for help): w <--' w ' 명령은 작업한 파티션정보를 저장하고 나가는 명령

  The partition table has been altered!

  Calling ioctl() to re-read partition table.

  WARNING: Re-reading the partition table failed with error 16: 장치나 자원이 동작 중.
  The kernel still uses the old table.
  The new table will be used at the next reboot.
  Syncing disks.
  [root@mail root]#

   ※저장후 재부팅해야 인식한다.

 

 6) 파티션 저장안하고 나가기

  

   Command (m for help): q <--' q ' 명령은 작업한 파티션정보를 저장하지않고 나가는 명령

 

  [root@mail root]#

 

 7) 기타 fdisk 내부에서 명령어 확인

 

  Command (m for help): m <-- 'm' 명령은 명령어들에 대한 도움말을 출력한다.
  Command action
  a toggle a bootable flag
  b edit bsd disklabel
  c toggle the dos compatibility flag
  d delete a partition
  l list known partition types
  m print this menu
  n add a new partition
  o create a new empty DOS partition table
  p print the partition table
  q quit without saving changes
  s create a new empty Sun disklabel
  t  change a partition's system id
  u change display/entry units
  v verify the partition table
  w write table to disk and exit
  x extra functionality (experts only)

'LinuX' 카테고리의 다른 글

Linux find 명령어 완전 정복 가이드  (0) 2009.06.18
klogin과 rlogin  (0) 2009.06.08
Cron  (0) 2008.11.24
USB 휴대용 저장 장치 마운트  (0) 2008.09.08
linux make law device(리눅스 raw device 생성)  (0) 2008.09.04
runInstaller 시 에러발생

initializing Java Virtual Machine from /tmp/OraInstall20 08-11-26_02-10-37PM/jre/bin/java. Please wait...
Error occurred during initialization of VM
Unable to load native library: /tmp/OraInstall2008-11-26_02-10-37PM/jre/lib/i386 /libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

 

http://www.opennet.ru/soft/ora_inst/


#-------------------------------------------------------------------------
#  Patch for Bug 3006854
#-------------------------------------------------------------------------
#
#  DATE:  October 22, 2003, Updated May 10th 2004
#  ----------------------------------------------------------
#  Platform Patch for : LINUX Intel
#
#  Bugs Fixed by this patch:
#  -------------------------
#  3006854, INSTALLER INTEROPERABILITY PATCH FOR RHEL3.0
#
#  This patch must be installed on systems running Red Hat Enterprise Linux 3.0
#  before running the Oracle Universal Installer (for any Oracle product).
#
#  This patch is not specific to a particular Oracle version.
#
#  Patch Installation Instructions:
#  --------------------------------
#  [1] To apply the patch, unzip the PSE container file:
#        % unzip p3006854_9204_LINUX.zip
#
#  [2] Login as the root user,
#
#  [3] Set your current directory to the directory where the patch
#      is located, eg:
#
#        # cd 3006854
#
#  [4] Run the script supplied by this patch
#
#        # sh rhel3_pre_install.sh
#
#  The installation of the patch is now complete. You can now run
#  the Oracle Universal Installer as normal.



sh 설정하는 부분

----------------------------------------------------------------------------------------------------------

 

export LD_LIBRARY PATH=$ORACLE_HOME/libTH=$PATH:$HOME/bin
TERM=vt100; export TERM
DISPLAY=192.168.0.52:0.0; export DISPLAY
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/db_1
export ORACLE_OWNER=10g
export ORACLE_SID=10g
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
umask 022

 


#backup_name=$(date +'%Y%m%d')".dmp"
#backup_dir="/backup/"
#!/bin/bash
su - 10g  <<EOF
sqlplus /nolog <<EOF

!exp userid=scott/tiger  file='/backup/b.dmp' FULL=Y
~
~
~

 

 

-----------------------------------------------------------------------------------------------------------

crontab -e 설정

 

HELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=10g
07 09 * * * /backup/backup.sh

+ Recent posts