From owner-freebsd-questions@FreeBSD.ORG Mon Feb 9 12:46:48 2009 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 922AE106566B for ; Mon, 9 Feb 2009 12:46:48 +0000 (UTC) (envelope-from Pieter.Donche@ua.ac.be) Received: from hmacs.cmi.ua.ac.be (hmacs.cmi.ua.ac.be [143.129.75.10]) by mx1.freebsd.org (Postfix) with ESMTP id 2975D8FC14 for ; Mon, 9 Feb 2009 12:46:47 +0000 (UTC) (envelope-from Pieter.Donche@ua.ac.be) Received: from hmacs.cmi.ua.ac.be (localhost [127.0.0.1]) by hmacs.cmi.ua.ac.be (8.13.8+Sun/8.13.8) with ESMTP id n19CkkEP007613 for ; Mon, 9 Feb 2009 13:46:46 +0100 (CET) Received: from localhost (pdon@localhost) by hmacs.cmi.ua.ac.be (8.13.8+Sun/8.13.8/Submit) with ESMTP id n19Ckk8Y007610 for ; Mon, 9 Feb 2009 13:46:46 +0100 (CET) X-Authentication-Warning: hmacs.cmi.ua.ac.be: pdon owned process doing -bs Date: Mon, 9 Feb 2009 13:46:46 +0100 (CET) From: Pieter Donche X-X-Sender: pdon@hmacs.cmi.ua.ac.be To: "mail.list freebsd-questions" Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: CUPS, initial PATH environment X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pieter Donche List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2009 12:46:48 -0000 If one installs CUPS as the printing system, one must use the /usr/local/bin versions of lp, lpr, lpq and lprm instead of the FreeBSD versions in /usr/bin, otherwise you get errors when using the command line interface... I could rename /usr/bin/lp, lpr, lpq, lprm to e.g. lp.origfreebsd, etc.. forcing the use of the /usr/local/bin versions but this would oblige me to do that again after every FreeSBD upgrade. Or I could put /usr/local/bin before /usr/bin in the path. Two questions: - is this a save thing to do (won't other things go wrong then?) - if OK to do that, where can I change the path for every user, whatever shell (csh, sh, bash, tcsh, rbash) he uses? /etc/profile, /etc/csh.* start-up files are shell-specific and as yet distributed, only contain outcommented information, yet a newly created user (whether using csh of bash) has a following path / PATH set up: /sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin Where is this path/PATH being set i.e. where can it be altered?