Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2009 13:46:46 +0100 (CET)
From:      Pieter Donche <Pieter.Donche@ua.ac.be>
To:        "mail.list freebsd-questions" <freebsd-questions@freebsd.org>
Subject:   CUPS, initial PATH environment
Message-ID:  <Pine.GSO.4.63.0902091345490.7603@hmacs.cmi.ua.ac.be>

next in thread | raw e-mail | index | archive | help
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?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.63.0902091345490.7603>