Saturday, May 4, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2176  / 3 Years ago, thu, june 17, 2021, 6:32:48

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.




  1. What is the technical name to call that part of the prompt?

  2. How can I make it appear for www-data?



See this for reference.



As you can see, root has this. But not www-data



enter image description here


More From » command-line

 Answers
0

I found the solution here



but i will explain the exact steps I used.



first at root i did a



echo $SHELL


I saw that I have /bin/bash



then i switch to www-data



sudo su www-data


then i do a



echo $SHELL


I saw that I had



/bin/sh


instead.



So I did a



chsh -s /bin/bash


I was prompted for my www-data password so I gave it.



Password:


after that I switch back to root



exit


then i log back into www-data



sudo su www-data


I checked the $SHELL again



echo $SHELL


I saw that now it is



/bin/bash


and also my prompt is back


[#33530] Thursday, June 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laceanz

Total Points: 86
Total Questions: 113
Total Answers: 104

Location: Australia
Member since Thu, Jan 26, 2023
1 Year ago
;