From owner-freebsd-questions@FreeBSD.ORG Fri Jan 17 17:35:12 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CFC56E5 for ; Fri, 17 Jan 2014 17:35:12 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5F8F3191B for ; Fri, 17 Jan 2014 17:35:12 +0000 (UTC) Received: from r56.edvax.de (port-92-195-149-155.dynamic.qsc.de [92.195.149.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 374F73CE7A; Fri, 17 Jan 2014 18:35:04 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s0HHYcGE001989; Fri, 17 Jan 2014 18:34:39 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 17 Jan 2014 18:34:38 +0100 From: Polytropon To: Fbsd8 Subject: Re: set prompt for new users Message-Id: <20140117183438.21f60837.freebsd@edvax.de> In-Reply-To: <52D87D89.1060606@a1poweruser.com> References: <52D87D89.1060606@a1poweruser.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jan 2014 17:35:12 -0000 On Fri, 17 Jan 2014 08:47:05 +0800, Fbsd8 wrote: > What file do I place my new 'set prompt' command in so all newly created > users get it? > > I'm running 9.2 and 10.RC4 I assume you're talking about the C-Shell. There are two ways: To make settings available for all users, set them centrally. This is /etc/csh.cshrc. But also make sure the system settings are not getting overridden by user settings in ~/.cshrc. When a user is created, he will get the file /usr/share/skel/dot.cshrc as ~/.cshrc, so you can use that file as a template for new users. Both files mentioned have a section that is tested for interactive shells. Here you can make your settings, for example to get the standard traditional full prompt: if ($?prompt) then set promptchars = "%#" set prompt = "%n@%m:%~%# " set autolist # ... more stuff ... endif You can of course add more settings to those files, inteded for interactive and non-interactive shells (for example to set some environmental variables, even though there is a more elegant way to do things like that). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...