0

I'm spinning up a bunch of identical servers but I don't have my ops deployment set up yet. Well, I already made a mistake in initializing the first server, namely, useradd steam not adduser steam.

first server has no colors

I tried to repair the user using mkhomedir_helper steam, as well as switching the user directory to /home/steam1 and back to /home/steam. I didn't make the mistake on my second server, and that one has colors on it.

second server has no colors

I've tried to copy the .bashrc from both the root account and the /etc/skel

rm /home/steam/.bashrc;sudo cp /root/.bashrc /home/steam/.bashrc
rm /home/steam/.bashrc rm /home/steam/.profile /home/steam/.bash_logout;sudo cp /etc/skel/.* /home/steam

After each of these commands, I disconnected and reconnected to my box, but I still had no colors. I also tried to set force_color_prompt=yes, but that did not fix the colors issue either.

Any ideas on how I can fix this user account to have colors? Any new user I create on the box and root also have colors.

PatPeter
  • 121

1 Answers1

1

I used one of my image scripts to add my custom environment variables to .bash_profile (as I'm used to doing on Red Hat distros), not knowing that Ubuntu uses .profile instead, and that by defining .bash_profile I was overriding .profile.

I moved my variables into .profile and deleted .bash_profile, and this was fixed.

PatPeter
  • 121