如何建立非互動shell - Linux

By Aaliyah
at 2012-01-17T11:56
at 2012-01-17T11:56
Table of Contents
※ 引述《Clarinetist (感謝一路幫忙的捧由們)》之銘言:
: 請問如何讓使用者遠端ssh login
: 看完motd之後直接idle (不斷線但無shell prompt)
: 目前想到的方法是寫一隻shell script 去 sleep 9999999
: 然後放到.bashrc裡面去跑
: 除此之外還有其它方式嘛?
: 好比說有哪個shell本來就是設計成這樣的??
將該使用者的 shell 改成 /bin/false 或 /sbin/nologin
然請請他登入時用 ssh -N
--
: 請問如何讓使用者遠端ssh login
: 看完motd之後直接idle (不斷線但無shell prompt)
: 目前想到的方法是寫一隻shell script 去 sleep 9999999
: 然後放到.bashrc裡面去跑
: 除此之外還有其它方式嘛?
: 好比說有哪個shell本來就是設計成這樣的??
將該使用者的 shell 改成 /bin/false 或 /sbin/nologin
然請請他登入時用 ssh -N
--
Tags:
Linux
All Comments
Related Posts
2個樹狀目錄,2個資料夾 的檔案管理軟體

By James
at 2012-01-17T11:23
at 2012-01-17T11:23
terminal 開程式?

By Regina
at 2012-01-16T20:57
at 2012-01-16T20:57
關於LDAP,dn的空格與surrounding text

By Margaret
at 2012-01-16T20:20
at 2012-01-16T20:20
架設 git server 但是使用 imap 驗證用戶

By Emma
at 2012-01-16T17:05
at 2012-01-16T17:05
GNOME 的事件音效主題

By Lucy
at 2012-01-16T16:53
at 2012-01-16T16:53