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
Category: 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 […]
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 & check disk usage # current kernel uname -a # list kernel rpm -q kernel cat /etc/grub.conf | grep title # disk usage […]
Change interface name
1. Intro If change interface name, then modify rules file ex> eth1 → eth0 2. How to do? vi /etc/udev/rules.d/70-persistent-net.rules ; PCI device 아래 주석 삭제
CentOS 7 default setting
1. Intro CentOS 7 default setting 2. Command 2.1. change hostname nmtui-hostname 2.2. Install net-tools ; ifconfig yum install net-tools 2.3. clean service systemctl stop firewalld systemctl disable firewalld systemctl stop postfix systemctl disable postfix
sendmail auth login
1. Intro sendmail auth login을 해보자 2. Setup sendmail vi /etc/mail/sendmail.mc ; 주석 해제 53 TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)dnl 54 define(`confAUTH_MECHANISMS’, `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)dnl sendmail restart service sendmail restart saslauthd start /etc/init.d/saslauthd start 3. Connection Test telnet [mail server ip] 25 220 ESMTP Hello! Sendmail ehlo aaa 250-Hello! Sendmail […]
SquirrelMail Error
1. 13 : Permission denied setsebool -P httpd_can_network_connect=1 2. 111 : Connection refused service dovecot start
yum 오류시
1. Intro CentOS EOS로 yum 업데이트 불가시 2. Command vi /etc/yum.repos.d/CentOS-Base.repo :%s/^mirrorlist/#mirrorlist/gl :%s/^#baseurl/baseurl/gl :%s/mirror.centos.org\/centos\/$releasever/vault.centos.org\/[Version]/gl
Install Mail Server on CentOS
1. Intro How to Install Mail Server on CentOS. Sendmail + dovecot + squirrelmail 2. Install Sendmail, dovecot 2.1. Install yum install sendmail sendmail-cf dovecot 2.2. Add Service ### CentOS 7 systemctl enable sendmail systemctl enable dovecot ### CentOS 6 chkconfig –level 345 sendmail on chkconfig –level 345 dovecot on 2.3. hostname 변경 vi […]
Install NameSerer(bind) on CentOS 7
1. Intro How to Install bind on CentOS 7 2. Command – Install yum install bind bind-chroot – Add Service systemctl enable named – Configure file vi /etc/named.conf listen-on port 53 { any; } lisetn-on-v6 port 53 { none; } allow-query { any; } vi /etc/named.rfc1912.zones zone “test.com” IN { type master; file “test.com.db”; […]