1. 개요 MySQL 계정의 비밀번호를 변경해보자 2. update 문 Update user set password=password(‘[비밀번호]’) where user=’root’; flush privileges; 3. Set password Set password for root=password(‘[비밀번호]’); 4. 비밀번호 강제 변경 service mysqld stop mysqld_safe –skip-grant-tables mysql -u root -p update user set authentication_string=password(‘2261bbs’) where user=’root’; flush privileges; service mysqld restart 오류 발생시> ERROR 1820 (HY000): […]
시작 프로그램 등록 (sysv-rc-conf)
1. 개요 CentOS에서는 시작프로그램을 chkconfig로 control하고, Ubuntu에서는 sysv-rc-conf으로 control한다. sysv-rc-conf에서 관리를 하려면 먼저 service 등록을 해야한다. update-rc.d로 service 등록을 하면 sysv-rc-conf에 해당 서비스가 표시된다. 2. service 등록 vi /etc/init.d/[프로그램명] ; 보통 cp해서 사용한다. # 반드시 있어야하는 부분 : 없으면 등록 안됨 #!/bin/bash ### BEGIN INIT INFO # Provides: [프로그램명] # Required-Start: $network # 모름 […]
root 계정으로 ssh 접속 가능하도록 설정하기
1. 개요 ubuntu는 기본적으로 root 계정의 ssh 접속이 차단되어있다. 그래서 user계정으로 접속 후 su – 명령을 통해 root로 로그인해야한다. 그러나 불가피하게 root의 ssh의 접속이 필요할 경우 다음과 같이 설정하면 된다. 2. 설정 방법 vi /etc/ssh/sshd_config ; 설정 PermitRootLogin yes 설정 service ssh restart
Delete history record
1. 현재 세션에서 입력한 명령어 history를 삭제하는 방법 1번째 방법 : history -c 2번째 방법 : unset HISTFILE 2. 과거에 입력한 명령어 history 삭제하는 방법 해당 계정의 history 파일에서 삭제 : ~/.bash_history
[command] sc
Command Command Description sc start [service name] Start service sc stop [service name] Stop service sc config [service name] start=[auto/system/demand/disabled] service 시작 유형 설정 sc failure [service name] action=[/O] reset=O service 복구 옵션 O ; 동작하지 않음
Remove Auto Share Folder on Windows
Intro Windows share default folder like C$, D$, IPC$, ADMIN$.But Security aspect that is very weak. Then remove share folder Command net share ; show share folder net share /delete [Share Folder Name] ; delete share folder(Not delete Original folder, Just Delete share link) reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /v AutoShareWks /t REG_DWORD /d 0 Firewall […]
Enable gpedit on Windows 10 Home
Intro If your OS is Windows 10 Home Edition, then you can’t open gpedit. Because Microsoft disable gpedit under Windows 10 Pro. So Let’s Enable gpedit Make bat file & Execute Bat file @echo off pushd “%~dp0” dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt for /f %%i in (‘findstr /i . List.txt 2^>nul’) do […]
What is svchost?
Intro svchost에 대한 기본 개념 및 옵션에 대해 알아보자. Site http://svchost-exe.net/
[Issue] Install Driver
드라이버 설치를 하려고 하는데 해당 OS 버전에 맞는 드라이버가 없는 경우. 어떻게 해야할까? 드라이버는 Windows Version과 NT Kernel을 기준으로 만든다. 따라서, NT Kernel 기준으로 만들어진 드라이버일 경우 해당 Kernel을 사용하는 OS의 드라이버를 설치하면 되고 Windows Version 기준일 경우 ini 파일에서 OS fix를 변경해서 설치하면 된다. 결론은 어떻게든 설치할 수 있는 방법은 있다!
Windows Server Event ID 조회
EventID 기반 Event 상세 내역 : 검색 가능 Good! http://eventopedia.cloudapp.net/default.aspx?LogType=Windows+Event+Log&LogName=Security&OSVersion=5.0%2c+5.1&Category=Account+Management&Source=Security&EventID=624&action=go Description of security events on Windows Server 2008 https://support.microsoft.com/en-us/help/947226/description-of-security-events-in-windows-vista-and-in-windows-server https://support.microsoft.com/ko-kr/help/977519/description-of-security-events-in-windows-7-and-in-windows-server-2008 기타 http://kali-km.tistory.com/entry/Windows-Event-Log-1 Event ID 조회 https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/ http://eventid.net/display.asp?eventid=768&source=