[Linux] sshd 無法啟動 & 權限

Version: Linux debian 2.6.26-2-686  i686 GNU/Linux

[Question] 在將Debian網路設定為Bridge mode, ping成功後發現ssh都沒起來, 執行
/etc/init.d/ssh start 顯示 "Starting OpenBSD Secure Shell server: sshd /var/run/sshd must be owned by root and not group or world-writable" 錯誤.
[Answer] google後說是/var/run/sshd 這個 folder的問題, 於是刪除後重新執行 /etc/init.d/ssh start 就可以了. 不過我檢查了刪除前後的folder屬性發現都一樣, 無法執行真是詭異... Orz...


[Question] Permission format 
ex. -rwxrwx---
[FILETYPE]{[Ownership R/W][EXECUTABLE]x3}

FILETYPE: 
  d :  目錄
  - :   檔案
  l  :   Link
Ownership 包括 File Owner, members in the same group as owner, others.

Comments

Popular posts from this blog

股票評價(Stock Valuation) - 股利折現模型

openwrt feed的使用

R 語言:邏輯回歸 Logistic Regression using R language (二)