Environment Varialbes per User

Chuck Swiger cswiger at mac.com
Tue Dec 21 18:57:26 PST 2004


Adam wrote:
> Can environment variables be set/customized per user?

Yes.  Read "man sh", "man csh", and so forth for the files used by each 
specific shell, but the idea is that you create a .login/.profile/.cshrc or 
whatever in each user's home directory which contains such settings.

In fact, FreeBSD normally provides default versions of these already which set 
up the PATH.  I believe you can also use the login.conf mechanism to set up 
env variables for groups or classes of users.

-- 
-Chuck



More information about the freebsd-questions mailing list