Linux 공통

Fail crond

1. Intro If cron does not run with the following error   2. Cause Account password expired.   3. Solution Modify Account’s password max days 3.1. Check default Policy grep “PASS_MAX_DAYS” /etc/login.defs   3.2. Change account Policy chage -E -1 -M 99999 [username] grep “[username]” /etc/shadow  

Continue Reading
CentOS

CentOS SSH OTP

1. Intro I want to configure OTP to use SSH connection to CentOS server.   2. Setup 2.1. install package yum install -y libtool pam-devel ntp git 2.2. setup ntpd The reason for using ntpd is that OTP is time-based. service ntpd start chkconfig ntpd on chkconfig –list ntpd 2.3. git clone & setup google […]

Continue Reading
Raspbian Ubuntu

Ubuntu SSH OTP

1. Intro I want to configure OTP to use SSH connection to Ubuntu server.   2. Setup 2.1. install google OTP sudo apt install libpam-google-authenticator 2.2. setup pam.d, sshd config # pam.d 맨 위에 추가시 Login ID → OTP code → PW 맨 아래 추가시 Login ID → PW → OTP code nullok : otp […]

Continue Reading
Tools

Write Timestamp on Notepad++

1. Intro If you want write timestamp on notepad++ like notepad(windows) shortcut F5   2. How to do? 2.1. Install Plugin Notepad++ > Plugins > Install “TextFX Characters” 2.2. Set Shortcut Notepad++ > Settings > Shortcut Mapper… > Plugin commands > “I:Date & Time – short format” Double Click

Continue Reading
Back To Top