[CentOS] Prompt for chrooted users

Tue Jul 7 00:21:22 UTC 2015
Jonathan Billings <billings at negate.org>

On Jul 6, 2015, at 2:49 PM, James B. Byrne <byrnejb at harte-lyne.ca> wrote:
> However, instead of getting the prompt defined in their
> .bash_profiles we see this:
> 
> -bash-4.1$
> 
> when we are expecting this:
> 
> [username at hostname dir]$
> 
> So, before I go messing around moving files I would some information
> from you as tio what I have overlooked.  Do I need to move something
> like etc/passwd and /etc/group into the chroot/etc?

This just means that your users don’t have a ~/.bashrc that can sources /etc/bashrc (either/both are missing), where the traditional $PS1 is set.

--
Jonathan Billings <billings at negate.org>