From owner-freebsd-questions@FreeBSD.ORG Mon Dec 31 16:25:43 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C210623 for ; Mon, 31 Dec 2012 16:25:43 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 0FCEA8FC13 for ; Mon, 31 Dec 2012 16:25:42 +0000 (UTC) Received: from [10.0.10.3] ([173.88.197.103]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 31 Dec 2012 08:25:38 -0800 Message-ID: <50E1BC82.8060403@a1poweruser.com> Date: Mon, 31 Dec 2012 11:25:38 -0500 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: FreeBSD Questions Subject: changing prompt for user in jail Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 31 Dec 2012 16:25:38.0128 (UTC) FILETIME=[77D47500:01CDE773] X-Sender: fbsd8@a1poweruser.com X-Authenticated-Sender: fbsd8@a1poweruser.com X-EchoSenderHash: [fbsd8]-[a1poweruser*com] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2012 16:25:43 -0000 When I change the prompt for root's .cshrc file in the jail it works as expected. if ($?prompt) then # An interactive shell -- set some stuff up set prompt = "# %/ >" set filec set history = 100 set savehist = 100 set mail = (/var/mail/$USER) if ( $?tcsh ) then bindkey "^W" backward-delete-word bindkey -k up history-search-backward bindkey -k down history-search-forward endif endif But when I start the jail and login to the jails host console and issue "pw adduser test -c jail-user -m -g wheel -w yes" the user does get created ok. Now when I login to the jail over remote ssh to the just created user account I get the % prompt, then su to root and get the set prompt = "# %/ >". I want that same prompt for all user I create in the jail. I tried putting the set prompt = "# %/ >" statement in the jail user account /home/test/.cshrc file log out and back in to no effect. Them I put the set prompt = "# %/ >" statement in the jail's /usr/share/skel/.cshrc and created a different user account using the same pw command, still no joy. Then I just added the set prompt = "# %/ >" statement in the jail's /etc/csh.cshrc and created new jail user account and still no joy. I even tried putting the set prompt = "# %/ >" statement as the last line in the files so it was out side of any if statements with no joy. No matter what I do to the config of the jail files it makes no difference when I use ssh to login to the jail user account. Anyone have any idea what I any doing wrong? Or is this just now jails work? Thanks