如何建立非互動shell - Linux

Table of Contents

※ 引述《Clarinetist (感謝一路幫忙的捧由們)》之銘言:
: 請問如何讓使用者遠端ssh login
: 看完motd之後直接idle (不斷線但無shell prompt)
: 目前想到的方法是寫一隻shell script 去 sleep 9999999
: 然後放到.bashrc裡面去跑
: 除此之外還有其它方式嘛?
: 好比說有哪個shell本來就是設計成這樣的??

將該使用者的 shell 改成 /bin/false 或 /sbin/nologin

然請請他登入時用 ssh -N

--

All Comments