- 2008-08-09 (土) 21:47
- Linux
このblogはCORESERVERで動かしているのですが、一番最初にsshログインして操作しようとした時、
~> ls -rbash: /bin/ls: restricted: cannot specify `/' in command names
というメッセージが出て訳がわからず焦りました。とりあえずメッセージ内容をgoogle先生に聞いたところ、CORESERVERのShellはデフォルトでrbashという制限付きbashとなっているとのこと。従ってchshコマンドを使用し、デフォルトShellをbashに変更しました。
~> chsh
Changing login shell for hogehoge.
Password:
Enter the new value, or press return for the default.
Login Shell [/bin/rbash]: /bin/bash
Shell changed.
これで普通に ls とか cd コマンドが使用出来るようになりました。ふう〜。
- Newer: クックパッドの話題のレシピをtwitterにPOSTするBOTを作った
- Older: kickstartを使ったインストールの自動化
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://aoshiman.net/weblog/2008/08/09/default_shell/trackback/
- Listed below are links to weblogs that reference
- CORESERVERのShell from “南船北馬”
