Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: User
Setting default user environments in /etc/profile.d/
 

Index | Next | Previous | View Flat


stroller at stellar

May 1, 2012, 11:11 AM


Views: 368
Permalink
Setting default user environments in /etc/profile.d/

So /etc/profile contains the following message:

# You should override these in your ~/.bashrc (or equivalent) for per-user
# settings. For system defaults, you can add a new file in /etc/profile.d/.
export EDITOR=${EDITOR:-/bin/nano}
export PAGER=${PAGER:-/usr/bin/less}

Therefore I have created a plain text file /etc/profile.d/essential_defaults

$ cat

export HISTSIZE=900
export HISTFILESIZE=900
export HISTCONTROL=erasedups

# vi-style Bash history editing
set -o vi

export MANPAGER="/usr/bin/most"
$

Yet when I log in, these environment variables are not set.

The file is world-readable (mode 644), and I even tried setting the execute bit (`chmod +xxx`).

If I source the file using `. /etc/profile.d/essential_defaults` then suddenly I get the right pager, but it does not seem to be sourced at login, as I believe is promised. What am I doing wrong or misunderstanding, please?

Stroller.

Subject User Time
Setting default user environments in /etc/profile.d/ stroller at stellar May 1, 2012, 11:11 AM
    Re: Setting default user environments in /etc/profile.d/ remy.blank at pobox May 1, 2012, 11:20 AM
        Re: Setting default user environments in /etc/profile.d/ stroller at stellar May 1, 2012, 12:41 PM
    Re: Setting default user environments in /etc/profile.d/ michael at orlitzky May 1, 2012, 11:27 AM
        Re: Setting default user environments in /etc/profile.d/ stroller at stellar May 1, 2012, 12:40 PM
    Re: Setting default user environments in /etc/profile.d/ wonko at wonkology May 1, 2012, 11:38 AM
        Re: Setting default user environments in /etc/profile.d/ stroller at stellar May 1, 2012, 12:42 PM
    Re: Setting default user environments in /etc/profile.d/ waltdnes at waltdnes May 1, 2012, 3:52 PM
        Re: Setting default user environments in /etc/profile.d/ stroller at stellar May 1, 2012, 8:58 PM
    Re: Setting default user environments in /etc/profile.d/ pandu at poluan May 1, 2012, 7:26 PM
    Re: Setting default user environments in /etc/profile.d/ stroller at stellar May 1, 2012, 9:01 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.