CentOS

Mount ownership

1. Abstract How to change ownership to root when trying to mount NAS disk to server (CentOS) but ownership is automatically set to nobody   2. How to use? vi /etc/idmapd.conf : Uncomment, change User/Group Nobody-User = root Nobody-Group = root    

Continue Reading
XenServer

Install XenServer

1. Abstract Install XenServer on Desktop Computer XenServer 8.2 • Kernel version: Linux 4.19 • Xen hypervisor version: 4.13 • Control domain operating system version: CentOS 7.5   2. Download https://www.citrix.com/downloads/ ※ Login required   3. Install USB-stick use Rufus : https://rufus.ie/   4. Install Computer

Continue Reading
Ubuntu

Clean unuse kernel

1. Intro If you have an old kernel that you are not using, you should delete it. Because it fill up the /boot capacity.   2. How to do? 2.1. check kernel # current kernel uname -a # list kernel sudo dpkg –list | grep linux-image 2.2. Delete old kernel sudo apt purge linux-image-[version]   […]

Continue Reading
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
Back To Top