Re: Prompt for chrooted users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



James B. Byrne wrote:
> We have a requirement to allow ssh access to a server in order to
> provide a secure link to one of our legacy systems.  I would like to
> chroot these accounts.
>
> I have this working except for one small detail, the user's prompt in
> the ssh session.  Each user has their shell set to /bin/bash in
> /etc/passwd.  However, instead of getting the prompt defined in their
> .bash_profiles we see this:
>
> -bash-4.1$
>
> when we are expecting this:
>
> [username@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?

When ssh'ing into the chrooted directories, where's their /home/<user>?
I'd set the prompt in ~/.bash_profile.

         mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux