Re: [問題] 可以FTP登入、不能ssh登入 怎麼做?
於 2012/11/1 下午 09:17, 我是版主 提到:
> 請問一下
>
> 我建了一隻帳號
>
> 想要可以使用 FTP 登入
>
> 但要限制不能ssh登入
>
> 請問要怎樣做???
>
>
>
> PS:我把/etc/passwd 改成 /sbin/nologin
> FTP也進不去了....
>
> --
> ※ 發信站: 批踢踢實業坊(ptt.cc)
> ◆ From: 114.26.165.222
>
把 /etc/passwd 改成 /bin/true
再將 ftp server 的 shell check 改成 no ,如果有的話。
將 /etc/shells 新增一行 /bin/true 試試
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
Linux 近期熱門文章
PTT數位生活區 即時熱門文章