Re: [問題] 可以FTP登入、不能ssh登入 怎麼做?

看板Linux作者時間13年前 (2012/11/02 15:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
於 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 ---
文章代碼(AID): #1Gas-kBq (Linux)
文章代碼(AID): #1Gas-kBq (Linux)