Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am running CentOS 5.6 on a dedicated server. I have accidentally removed the profile files from:

/home/USER123

There is only the following files in that directory:

  • .bash_history
  • .gitconfig
  • /.ssh
  • /var

Since the other files (I'm presuming there were other files) have been removed the prompt now shows:

-bash-3.2$

Is there a way of repairing this so it goes back to showing:

USER123@SERVERNAME
share|improve this question

2 Answers 2

up vote 1 down vote accepted

The system default dot-files usually exist under /etc/skel, so you could try to make a copy of those into the users home-directory.

share|improve this answer

It show -bash-3.2$ because the link don't work anymore. Try Recreating another user, maybe that'll fix the problem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.