리눅스에서 암호 분실 시 루트 암호를 변경하는 방법입니다. 일단, 리부팅을 합니다. reboot init 6 shutdown -r now ctrl+alt+del 등의 방법으로 리부팅 후에... 부팅 시 grub 화면이 5초가 지나가는데 이때 e키를 눌러줍니다. 엔터 한번 치면 한 3개의 항목이 뜨는데 그 중에 kernel 로 시작하는 두번째 항목에 커서 놓고 엔터 칩니다. grub>kernet어쩌저저쩌구 1 이렇게 끝에 1을 넣고 엔터칩니다. 그런 후 다시 b 눌러서 부팅합니다. 그러면... 싱글모드로 접속이 됩니다. passwd 로 비밀번호 변경 후 리부팅 하시면 됩니다. --------------------------------------------------------------- 암호를 모를 때 ..
전송방식 - 데이터의 동기화 여부에 따른 분류 동기식 전송 - 가격이 다소 높다 비동기식 전송 - 동기식 전송장비 보다 값이 싸다.
리눅스에서 사용자 완벽 삭제방법 리눅스에서 사용자를 삭제할 때는 여러 가지 이유가 있겠지만... 로그 추적이나 기타 다른 이유로 분석 할 시간이 필요할 때는 뭔저 락을 걸어두고 분석을 하면되겠습니다. #usermod -L 사용자명 -L, --lock lock the user account 이런식으로 먼저 락을 걸어놓고.... 완벽한 사용자 삭제를 위해서 [root@vash ~]# grep stest2 /etc/passwd stest2:x:501:501::/home/stest2:/bin/bash 이런식으로 사용자의 uid를 먼저 알아둡니다. 이제 사용자를 삭제합니다. #userdel -r 사용자명... Options: -f, --force force removal of files, even if not o..
리눅스에서 사용자 비밀번호 만료일 설정 해보기 일괄적으로 만료일을 지정해줄 수 있고 개별 사용자에게도 지정해줄 수 있습니다. /etc/login.defs 파일을 수정 - 일괄적용 chage 사용자명 - 개별적용 [root@vash ~]# cat /etc/login.defs 저 파일에서 # *REQUIRED* # Directory where mailboxes reside, _or_ name of file, relative to the # home directory. If you _do_ define both, MAIL_DIR takes precedence. # QMAIL_DIR is for Qmail # #QMAIL_DIR Maildir MAIL_DIR /var/spool/mail 이거는 메일 디렉토리 #..
리눅스에서 사용자 정보 수정하기 [root@vash ~]# usermod --help Usage: usermod [options] LOGIN Options: -a, --append append the user to the supplemental GROUPS (use only with -G) -c, --comment COMMENT new value of the GECOS field -d, --home HOME_DIR new home directory for the user account -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE -f, --inactive INACTIVE set password inactive after ..
리눅스에서 스왑 파티션 만들어보기 스왑을 늘릴 때도 유용하겠죠... [root@vash ~]# [root@vash ~]# [root@vash ~]# fdisk /dev/sda The number of cylinders for this disk is set to 19457. 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..