2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

You may not change the shell for 'XXXXX'. でシェルの変更ができない場合

Last updated at Posted at 2018-05-16

環境

  • Amazon Lightsail
  • Ubuntu16.04

デフォルトで存在するユーザー(ubuntu)とは別にユーザーを作成。
仮にユーザー名を sample とする。

デフォルトのシェルを確認

$ echo $SHELL
/bin/sh

シェルを変更しようとしたらできなかった

$ chsh -s /bin/bash
You may not change the shell for 'sample'.

sudoの権限のあるユーザーで変更する

$ sudo usermod -s /bin/bash sample

デフォルトのシェルを確認

一度、ログアウトしてから確認する

$ echo $SHELL
/bin/bash

参考URL

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?