Setting global enviroment variables

Matthew Seaman m.seaman at
Tue Apr 8 17:31:47 UTC 2008

Andrew Cid wrote:
> Hi all,
> What's the best way of setting environment variables on FreeBSD
> so that all users and daemons running from rc can see them?
> I'd like to set PKGROOT to a custom package server, so that all users
> and a couple of daemons that start from rc will use the new packages.

/etc/login.conf -- don't forget to run cap_mkdb after editing it.



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
                                                  Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list