ubuntu系統使用

紫翼龍王夜發表於2015-11-23

Ubuntu新增使用者:
        sudo adduser xxx 這樣的命令會在home目錄下新增一個帳號
        sudo useradd xxx 僅僅是新增使用者, 不會在home目錄新增帳號
新增sudo許可權:
       vi   /etc/sudoers
     修改如下檔案:
     ## Allow  peaple  in  group  wheel  to  run  all  commands
       root    ALL=(ALL:ALL) ALL
       username      ALL=(ALL:ALL) ALL

vim /etc/ssh/sshd_config
註釋掉:PermitRootLogin without-password
新增新行:PermitRootLogin yes

Ubuntu 配置檔案系統初始化

  1. /etc/timezone 時區  
  2. /etc/inetd.conf 超級程式 

Ubuntu 配置檔案系統

  1. /etc/fstab 開機時掛載的檔案系統  
  2. /etc/mtab 當前掛載的檔案系統 

Ubuntu 配置檔案使用者系統

  1. /etc/passwd 使用者資訊  
  2. /etc/shadow 使用者密碼  
  3. /etc/group 群組資訊  
  4. /etc/gshadow 群組密碼  
  5. /etc/sudoers Sudoer列表(請使用“visudo”命令修改此檔案,而不要直接編輯 

Ubuntu 配置檔案Shell

  1. /etc/shell 可用Shell列表  
  2. /etc/inputrc ReadLine控制元件設定  
  3. /etc/profile 使用者首選項  
  4. /etc/bash.bashrc bash配置檔案 

Ubuntu 配置檔案系統環境

  1. /etc/environment 環境變數  
  2. /etc/updatedb.conf 檔案檢索資料庫配置資訊  
  3. /etc/issue 發行資訊  
  4. /etc/issue.net  
  5. /etc/screenrc 螢幕設定 

Ubuntu 配置檔案網路

  1. /etc/iftab 網路卡MAC地址繫結  
  2. /etc/hosts 主機列表  
  3. /etc/hostname 主機名  
  4. /etc/resolv.conf 域名解析伺服器地址  
  5. /etc/network/interfaces 網路卡配置檔案 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30129545/viewspace-1844369/,如需轉載,請註明出處,否則將追究法律責任。

相關文章