2015年11月12日 星期四

目錄特殊權限設定(1)

SetGID ::

1. # mkdir /opt/test1
2. # chmod 2770 /opt/test1
3. # chgrp  engineers  /opt/test1

NTP 網路校時

CentOS7/RHEL7

  1. # yum install -y chrony
  2. # vim /etc/chrony.conf
  3.         server  1.1.1.1  iburst
  4. # systemctl enable chronyd.service
  5. # systemctl start chronyd
  6. # chronyc sourcestats

可參考資料:http://technote.aven-network.com/821/using-chrony-adjust-clock

2015年11月10日 星期二

CentOS/RHEL7 的 SELinux 運作說明與設定

章節目標:
  • SELinux 基本運作方式說明!
  • 說明 Centos 7 上的 SELinux 運作與設定方式!
SELinux 運作方式說明:
  • 設定檔:/etc/sysconfig/selinux
    • SELINUX=enforcing
    • SELINUX=permissive
    • SELINUX=disabled

網路設定方式

RHEL 7 網路設定方式:
  1. 圖形介面
    •  應用程式-->系統工具-->設定值-->網路
  2. 文字介面
    •  # nmtui-edit
  3. 檔案設定
    •  /etc/hostname
      • test.example.com
    •  /etc/resolv.conf
      • nameserver 168.95.1.1
    •  /etc/sysconfig/network-scripts/ifcfg-XXXX
      • IPADDR=192.168.1.10
      • GATEWAY=192.168.1.254
      • PREFIX=24

BTRFS 介紹

https://www.ibm.com/developerworks/cn/linux/l-cn-btrfs/