BASH and/or .BASHRC not working properly after SU or SSH login unless run “bash” command

前端 未结 4 1063
余生分开走
余生分开走 2020-12-24 15:02

I have an Amazon EC2 Machine running Ubuntu 10.04.

The default user, ubuntu\'s .bashrc seems to be behaving properly, but if I ssh or

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 15:43

    In order to fix this on the permanent basis, change /etc/passwd

    From:

    kwilson:x:3042:3042::/home/jjson:/bin/sh

    Change it to:

    kwilson:x:3042:3042::/home/jjson:/bin/bash

提交回复
热议问题