Re: [問題] vsftp如何指定特定帳號的登入目錄

看板Linux作者 (zak)時間17年前 (2009/01/31 10:50), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
※ 引述《nwish (WiSH)》之銘言: : 我希望能開個帳號web : 然後ftp登入之後會直接進到/var/www/html : 讓這個帳號可以在這個目錄上下傳檔案 : 我的OS Cent OS 5.2 修改帳號的家目錄 sudo vim /etc/passwd test : x : 1001 : 1001 : test : /var/www/html : /bin/bash : ----------------------- : 還有個問題 個人帳號的html一直開不起來 : SELinux關了 : 瀏覽個人網站會出現錯誤 : Forbidden : You don't have permission to access /~帳號/ on this server. : apache errorlog會這樣寫 : [error] [client 192.168.2.101] (13)Permission denied: access to /~帳號/ denied : apache的設定 : <IfModule mod_userdir.c> : UserDir public_html : </IfModule> : <Directory /home/*/public_html> : Options Indexes FollowSymLinks : AllowOverride None : </Directory> : 帳號中public_html 有改755了 : 不過我還是查不出問題在哪QQ 啟用個人網頁 //這部份我不是很確定XD sudo a2enmod userdir -- 中職麻都是打假球的 ◥◣ 中華隊加油! ◥◣ 爛死了!這樣也能輸… ◥◣ ◥◣ ─ ─ ◥◣ ★ ★ ◥◣ ‵ ′ CPBL ◢◤ ◢◤ By tchialen ◢◤ ◢◤ ...︶ ) ◢◤ ∕ ﹨ ◢◤ ︱︳ 偽.球迷三部曲 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.169.16.121
文章代碼(AID): #19Wxo3YH (Linux)
文章代碼(AID): #19Wxo3YH (Linux)