Re: /etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]

2015-05-11 Thread Henrique de Moraes Holschuh
autologin just > > above the line `auth required pam_env.so > > envfile=/etc/default/locale` > > By the way there are no security related adversaries to this right? I assume you mean "security advisories". There are none related to this at the moment, AFAIK. Do

Re: /etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]

2015-05-03 Thread Avinash Sonawane
On Sun, May 3, 2015 at 8:24 PM, Avinash Sonawane wrote: > On Sun, May 3, 2015 at 7:58 PM, Nicolas George wrote: >> Le quartidi 14 floréal, an CCXXIII, Avinash Sonawane a écrit : >>> So will it work if I add `authrequiredpam_env.so` >>> to lightdm, lightdm-greeter and lightdm-a

Re: /etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]

2015-05-03 Thread Avinash Sonawane
orked! I added `authrequired pam_env.so` in lightdm, lightdm-greeter and lightdm-autologin just above the line `auth required pam_env.so envfile=/etc/default/locale` and now /etc/environment is available for normal user. Thank you so much! -- Avinash Sonawane (Roo

Re: /etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]

2015-05-03 Thread Nicolas George
Le quartidi 14 floréal, an CCXXIII, Avinash Sonawane a écrit : > So will it work if I add `authrequiredpam_env.so` > to lightdm, lightdm-greeter and lightdm-autologin files? Try. > So I should file this against jessie, lightdm or xfce(as in GNOME > /etc/env

Re: /etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]

2015-05-03 Thread Avinash Sonawane
ith "ps". Yes. It is lightdm. > >> And in lightdm, lightdm-autologin and lightdm-greeter I see: >> >> # Load environment from /etc/environment and ~/.pam_environment >> auth required pam_env.so envfile=/etc/default/locale >> >> > If t

Re: /etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]

2015-05-03 Thread Nicolas George
ghtdm-greeter I see: > > # Load environment from /etc/environment and ~/.pam_environment > auth required pam_env.so envfile=/etc/default/locale > > > If there is, check that pam_env.so is invoked. > > Apparently pam_env.so is alreadu being invoked. Not exactly. It is invoke

Re: /etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]

2015-05-03 Thread Avinash Sonawane
find out which is?) And in lightdm, lightdm-autologin and lightdm-greeter I see: # Load environment from /etc/environment and ~/.pam_environment auth required pam_env.so envfile=/etc/default/locale > If there is, check that pam_env.so is invoked. Apparently pam_env.so is alreadu being inv

Re: /etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]

2015-05-03 Thread Nicolas George
Le quartidi 14 floréal, an CCXXIII, Avinash Sonawane a écrit : > I am using Jessie with XFCE. Look in /etc/pam.d/ if there is a file related to xfce and its display manager. If there is, check that pam_env.so is invoked. If it is not, add it by imitating another file that does it right (xdm for ex

/etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]

2015-05-03 Thread Avinash Sonawane
I am using Jessie with XFCE. When I try to invoke any network using utility as normal user my /etc/environment is not getting used as if for normal user /etc/environment doesn't exist. While when I try to invoke the same utility as a root user the proxy set in /etc/environment just works

Re: Where is /etc/environment involved?

2009-10-28 Thread green
Roger Leigh wrote at 2009-10-28 04:56 -0500: > On Wed, Oct 28, 2009 at 05:38:05PM +0800, Magicloud Magiclouds wrote: > > I looked over the init scripts. I cannot find the exact place that > > reads /etc/environment. > > pam_env.so is part of the PAM auth setup. Note you sho

Re: Where is /etc/environment involved?

2009-10-28 Thread Roger Leigh
On Wed, Oct 28, 2009 at 05:38:05PM +0800, Magicloud Magiclouds wrote: > I looked over the init scripts. I cannot find the exact place that > reads /etc/environment. pam_env.so is part of the PAM auth setup. Note you should really use /etc/security/pam_env.conf instead, AFAICT /etc/environm

Where is /etc/environment involved?

2009-10-28 Thread Magicloud Magiclouds
I looked over the init scripts. I cannot find the exact place that reads /etc/environment. -- 竹密岂妨流水过 山高哪阻野云飞

Re: when is the file /etc/profile and /etc/environment loaded

2008-09-20 Thread Andrei Popescu
;s a good solution. Hence, I'd like to > know, when and how are the file /etc/profile and /etc/environment > loaded, and where is the right place to set the system wide variables > such as locale. System-wide locale is set with 'dpkg-reconfigure locales'. If a package does

when is the file /etc/profile and /etc/environment loaded

2008-09-19 Thread lucky.rand
right locale, and the file names which include Chinese characters are encoded wrong. Certainly, I could change the S98mldonkey-server file directly and also ugly. But I don't think it's a good solution. Hence, I'd like to know, when and how are the file /etc/profile and /etc/environme

locale vs. localeconf & /etc/environment & paper sizes

2004-06-07 Thread William Ballard
I noticed both "dpkg-reconfigure localeconf" and "dpkg-reconfigure locales" will change /etc/environment. Sometimes you will end up with LANG=en_US in the "Debconf" section (via localeconf) and also LANG=en_US at the end (added by locales). But when you "cl

Re: Which package creates /etc/environment?

2004-03-20 Thread Phil Edwards
c and so > > forth). > > Actually, it is. You can set site-wide variables there. Um. Let me elaborate. When I said that it isn't the login shell, I meant that strace'ing a shell session showed no sign of reading that file. When I said that it isn't any of the setu

Re: Which package creates /etc/environment?

2004-03-19 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phil Edwards <[EMAIL PROTECTED]> writes: > Because 'dpkg -S' can't find it. Right, nothing in Debian provides it. I created mine by hand. > And more to the point, what's looking at that file? It isn't my login shell, > it isn't any of the setup fi

Re: Which package creates /etc/environment?

2004-03-19 Thread Lorenzo Prince
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thus spake Phil Edwards: # Because 'dpkg -S' can't find it. A little Googling indicated that your shell may look at it after /etc/profile. But from what I can see, no package actually creates it. It may have been created by a script invoked by you or

Re: Which package creates /etc/environment?

2004-03-19 Thread Rob Sims
? It isn't my From my /etc/pam.d/login: # This module parses /etc/environment (the standard for setting # environ vars) and also allows you to use an extended config # file /etc/security/pam_env.conf. # (Replaces the `ENVIRON_FILE' setting from login.defs) auth required pam_env.so -- Rob

Re: Which package creates /etc/environment?

2004-03-19 Thread CW Harris
On Fri, Mar 19, 2004 at 06:05:36AM -0500, Phil Edwards wrote: > Because 'dpkg -S' can't find it. > It is created by the "locales" package installation scripts. > And more to the point, what's looking at that file? It isn't my login shell, > it isn't any of the setup files that it looks at (.bash

Re: Which package creates /etc/environment?

2004-03-19 Thread Phil Edwards
setup files that it looks at (.bashrc and so forth). > >But the variables in that file are getting set somehow, and I'd like to > >know how, and what's going to someday break if it gets removed. > > > Comparing the date of my /etc/environment with the dates in my &g

Which package creates /etc/environment?

2004-03-19 Thread Phil Edwards
Because 'dpkg -S' can't find it. And more to the point, what's looking at that file? It isn't my login shell, it isn't any of the setup files that it looks at (.bashrc and so forth). But the variables in that file are getting set somehow, and I'd like to know how, and what's going to someday brea

Re: LANG in /etc/environment and in .bashrc

2003-07-30 Thread Robin Gerard
On Wed, Jul 30, 2003 at 12:27:00AM +0200, Andreas Janssen wrote: > Hello > > Robin Gerard (<[EMAIL PROTECTED]>) wrote: > > > I would like to understand why, when I set LANG to C, in > > /etc/environment and LANG to fr_FR.ISO-8859-1 in my .bashrc, after the >

Re: LANG in /etc/environment and in .bashrc

2003-07-29 Thread Andreas Janssen
Hello Robin Gerard (<[EMAIL PROTECTED]>) wrote: > I would like to understand why, when I set LANG to C, in > /etc/environment and LANG to fr_FR.ISO-8859-1 in my .bashrc, after the > login, I can't write te letters with accents. Are you talking about a login shell? .bashrc i

LANG in /etc/environment and in .bashrc

2003-07-29 Thread Robin Gerard
Hello, I would like to understand why, when I set LANG to C, in /etc/environment and LANG to fr_FR.ISO-8859-1 in my .bashrc, after the login, I can't write te letters with accents. ( However if I launch mutt, for example, the messages send by mutt are in French. ) On the other hand, if

Re: What is /etc/environment for?

2002-02-20 Thread martin f krafft
also sprach Paul Hampson <[EMAIL PROTECTED]> [2002.02.19.1728 +0100]: > What exactly is /etc/environment for, and how is it used. > The only thing I'm aware of it being used in is for > the locales package, and all that does is make perl give me > warnings when it's r

What is /etc/environment for?

2002-02-19 Thread Paul Hampson
What exactly is /etc/environment for, and how is it used. The only thing I'm aware of it being used in is for the locales package, and all that does is make perl give me warnings when it's run as a user on my i386, but not as root. And no warnings with either user or root on my Pow

Re: /etc/environment

2002-01-22 Thread Brenda J. Butler
> in light of the recent discussion on /etc/environment, check out [1], > which is pretty good at explaining the powers of pam_env.so and also > tells you what /etc/environment is *really* for. and it's not AIX > documentation ;) > > 1. http://linux.oreillynet.com

/etc/environment

2002-01-18 Thread martin f krafft
in light of the recent discussion on /etc/environment, check out [1], which is pretty good at explaining the powers of pam_env.so and also tells you what /etc/environment is *really* for. and it's not AIX documentation ;) 1. http://linux.oreillynet.com/pub/a/linux/2001/10/05/PamModules

Re: /etc/environment, and xdm/login/pam

2002-01-11 Thread martin f krafft
also sprach Brenda J. Butler <[EMAIL PROTECTED]> [2002.01.11.1803 +0100]: > Maybe I happen to have the "in-between" distro that has the "new" > /etc/environment, before they started sourcing /etc/environment > from /etc/X11/Xsession (I'm guessing that th

Re: /etc/environment, and xdm/login/pam

2002-01-11 Thread Brenda J. Butler
On Fri, Jan 11, 2002 at 03:41:54PM +0100, martin f krafft wrote: > also sprach Mark Ferlatte <[EMAIL PROTECTED]> [2002.01.11.0948 +0100]: > > /etc/environment is read by the pam_env.so PAM module. If you don't > > have > > > > auth required pam_e

Re: /etc/environment

2002-01-11 Thread Craig Dickson
martin f krafft wrote: > but why did the /etc/environment trick fix my Perl complaining about > locales? but then, i can't find that debian-user post which solved it > for me, and i can't reproduce the perl problems. oh well... Some versions of the gdm session scrip

Re: /etc/environment

2002-01-11 Thread martin f krafft
also sprach Mark Ferlatte <[EMAIL PROTECTED]> [2002.01.11.0948 +0100]: > /etc/environment is read by the pam_env.so PAM module. If you don't > have > > auth required pam_env.so > > in whichever /etc/pam.d/* correspondes to your login system. > > I used gdm

Re: /etc/environment

2002-01-11 Thread Mark Ferlatte
On Fri, Jan 11, 2002 at 03:41:56AM -0500, Brenda J. Butler wrote (1.00): > I really think it has something to do with login/pam. > But what? And why doesn't it get run when I log in from > xdm? /etc/environment is read by the pam_env.so PAM module. If you don't have auth

/etc/environment

2002-01-11 Thread Brenda J. Butler
Talking about On Thu, Jan 10, 2002 at 07:06:46PM -0500, Brenda J. Butler wrote: > Seriously, though, I'd never heard of the /etc/environment file > so I looked it up with > > find /etc -type f -exec grep "/etc/environment" {} \; -print > > and the only f

Re: HOW TO: Use of /etc/environment to manage SMP application compiles

2001-07-02 Thread Noah Meyerhans
pile faster. It *won't* run any faster once it's installed. Since the CONCURRENCY_LEVEL variable is only meaningful to make-kpkg, you should put it in the appropriate config file, /etc/kernel-pkg.conf, not /etc/environment. In order to make the OS itself support multiple CPUs you must configur

HOW TO: Use of /etc/environment to manage SMP application compiles

2001-07-02 Thread John Foster
I want to know how to use environment variables to manage the software compiles for a dual processor system. I have these as what I think might work as setting. I need tips, advice on proceeding. # environment settings LANG=C CONFIG_SMP=y CONCURRENCY_LEVEL=2 DEBIAN_BUILDARCH=pentium # EOF Has an

Re: Forcing the system to re-read /etc/environment

2001-06-25 Thread ktb
On Tue, Jun 26, 2001 at 06:28:08AM +0200, Daniel de los Reyes wrote: > Is there a way to force the system to reread /etc/environment without > rebooting? > I don't want to loose my uptime :-) Edit the file and log out and log back in or for the current login your working w

Forcing the system to re-read /etc/environment

2001-06-25 Thread Daniel de los Reyes
Is there a way to force the system to reread /etc/environment without rebooting? I don't want to loose my uptime :-) -- __ Daniel de los Reyes S2-Desarrollo, Grupo S2 Valencia Spain e-mail: [EMAIL PROTECTED] Powered by Debian GNU-Linux 2.2r3 __

/etc/environment file: What is it?

2000-10-16 Thread Malte Cornils
Hi, I'd like to know where to find more information on the /etc/environment file, I couldn't find a man page or info page for it and searching through the Debian mailing lists didn't turn anything up either. It would be great if you could point me to some information wrt

potato change?: /etc/environment not sources for root?

2000-08-25 Thread Daniel Barclay
Was there a change between slink and potato such that /etc/environment is not sourced for root as is still is for regular users? (I'm using PAM on potato.) If so, what's the right way (the PAM configuration way) to have the system source /etc/environment for root too. Also, what&#

Re: /etc/environment

2000-08-11 Thread Lehel Bernadt
On 11-Aug-2000 Patrick Dahiroc wrote: > which man page do i need to learn more about the LANG and LC_LANG > variables? is there a comperhensive list of env variables? - man [1|5|7] locale. - the "Locales" chapter in the glibc manual Usable variables are in /etc/locale.alias and the directory nam

Re: /etc/environment

2000-08-11 Thread Patrick Dahiroc
> > The only place I found LANG=C appeared to be /etc/environment, and > > > changing this to LANG='' appears to have solved the problem. > > > > > > Why is LANG set to C from /etc/environment; which package puts this in? > > > And what does LA

Re: /etc/environment

2000-08-11 Thread Jacques Foury
> On Wed, Aug 09, 2000 at 03:19:13PM +0200, Wouter Hanegraaff wrote: > > > > The only place I found LANG=C appeared to be /etc/environment, and > > changing this to LANG='' appears to have solved the problem. > > > > Why is LANG set to C from /

Re: Mutt locale settings [Was: Re: /etc/environment]

2000-08-10 Thread Eric G . Miller
I don't know about a ssh session, but setting LANG=en_US solves this problem just fine under normal circumstances. Any other LANG with an 8bit charset ought to do fine as well. The default "C" limits you to ASCII. Then there's no æ Á or even ø! -- MegaHAL quote: I think a blowpipe is a

Re: /etc/environment

2000-08-10 Thread Marko Cehaja
Dear On Wed, Aug 09, 2000 at 03:19:13PM +0200, Wouter Hanegraaff wrote: > > The only place I found LANG=C appeared to be /etc/environment, and > changing this to LANG='' appears to have solved the problem. > > Why is LANG set to C from /etc/environment; which package

RE: Mutt locale settings [Was: Re: /etc/environment]

2000-08-10 Thread Lehel Bernadt
On 10-Aug-2000 Wouter Hanegraaff wrote: > Since mutt was the only program that doesn't display these characters > correctly, I searched the mutt mailing list archives. I still don't > understand why unsetting LANG solves my problem, because the correct fix > is to set LC_CTYPE to an appropriate v

Mutt locale settings [Was: Re: /etc/environment]

2000-08-10 Thread Wouter Hanegraaff
On Wed, Aug 09, 2000 at 08:49:23PM +0300, Lehel Bernadt wrote: > > On 09-Aug-2000 Wouter Hanegraaff wrote: > > Hi, > > > > I was having trouble with the display of special characters in mutt when > > logged in using ssh, and I found that the LANG environment variable is > > the culprit. Since mu

RE: /etc/environment

2000-08-09 Thread Lehel Bernadt
set to C, > whatever that means. > > The only place I found LANG=C appeared to be /etc/environment, and > changing this to LANG='' appears to have solved the problem. > > But several questions remain: > > Why doesn't display of special characters work whe

/etc/environment

2000-08-09 Thread Wouter Hanegraaff
from that xterm, special characters are displayed as '?'. diff-ing the environment settings showed that from a normal xterm, LANG is unset, while from a login shell (e.g. when using ssh) LANG is set to C, whatever that means. The only place I found LANG=C appeared to be /etc/enviro

pam vs /etc/environment

2000-07-14 Thread Will Trillich
er will by (uid=0) i tried a ssh login, and finally managed to get it to work (instead of sick and twisted telnet) and in addition to /etc/motd and 'no mail' i saw this: Bad line in /etc/environment: . /etc/postgresql/postgresql.env in /etc/environment, there's nothing but t

Re: /etc/environment

1999-06-25 Thread Chuck Stickelman
Brad wrote: > On Wed, 23 Jun 1999, Frank Barknecht wrote: > > > [EMAIL PROTECTED] hat gesagt: // [EMAIL PROTECTED] wrote: > > > > > What if /etc/environment comprised of a series of variable=value > > > statements > > > that each shell would read an

Re: /etc/environment

1999-06-24 Thread Frank Barknecht
Brad hat gesagt: // Brad wrote: > i think the original proposal was that /etc/environment would only contain > name=value pairs. Each shell would parse this file (via a script in > /etc/profile or whatever default) to insert all those pairs into the > shell's environmen

Re: /etc/environment

1999-06-23 Thread Brad
On Wed, 23 Jun 1999, Frank Barknecht wrote: > [EMAIL PROTECTED] hat gesagt: // [EMAIL PROTECTED] wrote: > > > What if /etc/environment comprised of a series of variable=value statements > > that each shell would read and use to set the environment? Doing it that > > way

Re: /etc/environment

1999-06-23 Thread Gilbert Laycock
>>>>> Frank Barknecht writes: > I would like to add that ssh also reads /etc/environment and expects > name=value pairs there only. So if you have lines like: > PAGER=less > export PAGER > in /etc/environment, ssh complains about a bad syntax with this:

Re: /etc/environment

1999-06-23 Thread Frank Barknecht
[EMAIL PROTECTED] hat gesagt: // [EMAIL PROTECTED] wrote: > What if /etc/environment comprised of a series of variable=value statements > that each shell would read and use to set the environment? Doing it that > way would require each shell maintainer to modify some of their scripts o

Re: /etc/environment

1999-06-19 Thread stick
/etc/profile by default, and that C-shell-like ones will use /etc/csh.cshrc, and that X11 uses /etc/environment. But what about zsh!? According to it's man page it doesn't make use of any of those files. So now what do we do? Ask the Systems Administrators to edit and synchronize 3, 4 or

Re: /etc/environment

1999-06-18 Thread Jean-Philippe Guérard
On Fri, Jun 18, 1999 at 01:31:39PM +0200, Marco Maggesi wrote: > I saw a file /etc/environment > who reads it ? It is automatically read by X11 on startup. You can also add something like : [ -f /etc/environment ] && . /etc/environment in /etc/profile to have bash read it aut

Re: /etc/environment

1999-06-18 Thread Gary L. Hennigan
efinition like: > > > > PAGER=less > > > > so that they take effect to every user (unless explicitly > > overwritten) WHATEVER LOGIN SHELL they use. is that > > possible? > > > > I saw a file /etc/environment > > who reads it ? And if they

Re: /etc/environment

1999-06-18 Thread Peter Iannarelli
every user (unless explicitly > overwritten) WHATEVER LOGIN SHELL they use. is that > possible? > > I saw a file /etc/environment > who reads it ? > > thanks > marco > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null begin:vcard n:Iannar

/etc/environment

1999-06-18 Thread Marco Maggesi
I am looking for the appropriate place where to put some basic environmental definition like: PAGER=less so that they take effect to every user (unless explicitly overwritten) WHATEVER LOGIN SHELL they use. is that possible? I saw a file /etc/environment who reads it ? thanks marco