Re: Environment variables

From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: 03/09/05

  • Next message: Ben Ransom: "ypbind iptables linux 4 ?"
    Date: Tue, 08 Mar 2005 21:49:53 -0600
    
    

    On Wed, 09 Mar 2005 01:59:43 +0000, Jubri Siji wrote:

    > Thanks it worked , typed it in myself instead of pasting so what file do i
    > modify to make sure it gets loaded when any user logs on

    You can create a file, call it "/etc/profile.d/my-env.sh", with lines such
    as:

            export FOO=bar

    in it. Be sure to make it executable (chmod +x /etc/profile.d/my-env.sh).

    This should work for BASH; if folk use a different shell, you can use the
    same technique, depending on where they source their startup files.

    Cheers


  • Next message: Ben Ransom: "ypbind iptables linux 4 ?"

    Relevant Pages