Question

I have newly installed a remastered ubuntu 12.10. after installation I ran a script to make a standard user and do some other works. now when I log into the new standard user and open terminal, it only shows a $ mark and doesnt show username@hostname$.

it can return whoami but doesnt return anything for echo $HOSTNAME the interesting thing is when I run bash, everything is ok, but when I run dash(which is default in ubuntu) I see the problem.

I've tried dpkg-reconfigure dash but nothing changed.

can anyone guess what is happened to my system! thank you in advance.

Was it helpful?

Solution

I suggest to use bash instead of dash since the former is far better for interactive use.

The shell for the new user is probably set to /bin/dash, you just have to create the new user specifing the shell you want using the --shell option for the adduser command. To change the shell for an alredy created user you can use the command chsh.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top