CentOS 7 : Konfigurasi NTP Server

Hallo, dalam seri CentOS 7 kali ini kita akan membahas konfigurasi NTP Server . Kita akan menggunakan dua aplikasi NTP server, yaitu NTPd dan Chrony.




Hallo, dalam seri CenOS7 kali ini kita akan membahas Manajemen Firewall dan SELinux.
[root@centos ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2015-03-31 19:36:27 JST; 2s ago
Main PID: 1308 (firewalld)
CGroup: /system.slice/firewalld.service
└─1308 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
.....
# stop service [root@centos ~]# systemctl stop firewalld # disable service [root@centos ~]# systemctl disable firewalld rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service' rm '/etc/systemd/system/basic.target.wants/firewalld.service'
[root@centos ~]# getenforce Enforcing # SELinux is enabled
[root@centos ~]# vi /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # ubah menjadi disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted # restart untuk melihat perubahan [root@centos ~]# reboot

Hallo, pada tutorial CentOS Series kali ini akan membahas mengenai user management. Yaitu menambah, mengedit dan menghapus user pada CentOS7.
[root@dlp ~]# useradd centos [root@dlp ~]# passwd centos Changing password for user centos. New UNIX password: # set password Retype new UNIX password: # confirm passwd: all authentication tokens updated successfully. [root@dlp ~]# exit # logout
dlp login: centos # input user name password: # password [centos@dlp ~]$ su - # switch to root Password: # root password [root@dlp ~]# # just switched to root
[root@dlp ~]# usermod -G wheel centos [root@dlp ~]# vi /etc/pam.d/su #%PAM-1.0 auth sufficient pam_rootok.so # Uncomment the following line to implicitly trust users in the "wheel" group. #auth sufficient pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the "wheel" group. # uncomment the following line auth required pam_wheel.so use_uid auth substack system-auth auth include postlogin account sufficient pam_succeed_if.so uid = 0 use_uid quiet account include system-auth password include system-auth session include system-auth session include postlogin session optional pam_xauth.so
kill -u centos #id centos uid=1000(centos) gid=1000(centos) groups=1000(centos),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),127(sambashare) # id vanessa uid=1001(vanessa) gid=1001(vanessa) groups=1001(vanessa) centos@centos ~ $ usermod -l vanessa centos groupmod -n vanessa centos usermod -d /home/vanessa -m vanessa usermod -c "Vanessa Angel" vanessa id vanessa
userdel -r username

If you like articles on this blog, please subscribe for free via email.
Asal SEO