1 / 1

root shell 을 잃어버려서 로그인이 안되는 경우

root shell 을 잃어버려서 로그인이 안되는 경우.

talmai
Download Presentation

root shell 을 잃어버려서 로그인이 안되는 경우

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. root shell을 잃어버려서 로그인이 안되는 경우 • 1. 시스템을 down 시키고 OS CD를 CD-ROM drive에 넣는다. root로 login을 할수 없으므로 시스템을 재부팅 시키기 위해서는 keyboard에서 "stop" key와 "a" key를 동시에 눌러서 시스템을 PROM mode(ok prompt 상태)로 전환한다 2. 아래와 같이 CDROM 을 이용하여 single-user mode로 부팅한다 ok boot cdrom -sw 3. Bourne shell prompt(#)가 나타나면, /로 사용하던 disk device를 /mnt로 mount 한다. /로 사용하던 disk device가 /dev/dsk/c0t0d0s0인 경우 아래와 같이 한다. # mount -F ufs -o rw /dev/rdsk/c0t0d0s0 /mnt 4. 위와 같이 하면 기존에 /etc directory에 있던 passwd화일이 /mnt/etc/passwd로 존재하게 되며, 이 화일을 vi로 열어서 root에 정의되어 있는 shell부분을 /bin/csh로 바꾸어준다(csh일 경우) # vi /mnt/etc/passwd root:x:0:1:Super-User:/:/bin/csh 5. 위와 같이 한후 시스템을 재부팅 하면 root로 login가능하다

More Related