close

至少.....這是給以後這間實驗室,身為網管的學弟學妹們看的,

以後要尋找某樣東西是怎樣設定的時候,可以藉助鳥哥或是這裡的部分資源來解決

以後若有想到還有甚麼網管需要知道的基本常識,我還會再加上去的

  • 開機載入: /etc/rc.d/rc.local
  • nfs client: mount -t nfs [nfs_server's folder] [nfs_client's folder]
  • ypbind問題: 將所有有關ypserv全部重開(of nis server):
    • /etc/init.d/ypbind restart
    • /etc/init.d/yppasswdd restart
    • /etc/init.d/ypserv restart
    • /etc/init.d/ypxfrd restart
  • NFS server configuration-> user access 將 "treat remote root user as local root"不要打勾,以免混淆remote root和local root的差異
  • 遠端連線主動連入: /etc/hosts.allow, /etc/hosts.deny, /etc/ypserv.conf(遠端IP網域認證限制)
  • host names對應IP: /etc/hosts
  • 目前的IP table: /sbin/iptables -L
  • 排程: /etc/crontab
  • quota編輯和檢視:
    • /usr/sbin/edquota -u [user account]   
    • repquota -avu
  • 使用者帳戶的增加和修改:
    • lsattr -a /etc/shadow(顯示shadow權限)
    • lsattr -a /etc/passwd(顯示passwd權限)
    • chattr +i /etc/passwd (表不能修改passwd檔)
    • chattr -i /etc/passwd (可修改passwd檔)
    • useradd -u [UID] -g [GID] [username](建立帳戶)
    • passwd [username] (將[username]帳戶設定密碼)
    • 建立之前記得先將shadow和passwd權限關閉,建立完之後記得開權限,並且更新nis database, nis service restart, update passwd:
      • ypinit -m , ypserv restart, yppasswdd
arrow
arrow
    全站熱搜

    Hentyduary 發表在 痞客邦 留言(0) 人氣()