Sebastian Göttschkes <
sebastian....@googlemail.com> writes:
> I got a testserver running debian 6 which was installed from an image
> my webhoster owns. This image includes a modified .bashrc,
> .bash_profile and .profile file for the root, stored under
> /root/. When I log in through ssh using the root account, my bash is
> nicely colored. I created a second user, copied all three files into
> the home directory and changed the shell for this user to /bin/bash in
> /etc/passwd. Now if I login (again ssh) using the new user the shell
> is also nicely colored.
>
> But here is the thing: When I connect using the new user, then use su
> to log in as root, the color is gone. I cannot figure out why this
> would happen. Maybe I don't understand which shell is used when one
> logs in using su.
.profile or .bash_profile are only read for a login shell. See 'man