I have just created a fresh installation of Ubuntu 12.10
I have created a www-data user account.
When I switch to www-data, I cannot see www-data
at the front of the prompt.
- What is the technical name to call that part of the prompt?
- How can I make it appear for www-data?
See this for reference.
As you can see, root has this. But not www-data
I found the solution here
but i will explain the exact steps I used.
first at root i did a
I saw that I have /bin/bash
then i switch to www-data
then i do a
I saw that I had
instead.
So I did a
I was prompted for my www-data password so I gave it.
after that I switch back to root
then i log back into www-data
I checked the $SHELL again
I saw that now it is
and also my prompt is back
root
's~/.bashrc
file towww-data
's~/.bashrc
file.In other words: (run in root)
cp ~/.bashrc /home/www-data/.bashrc
assuming/home/www-data
iswww-data
's home folder, which it is. Then just restart. (Actually, you only need to killbash
, but just restart anyway)