[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/environement



Benoit Speckel a écrit :
> 
> On Thu, Oct 04, 2001 at 07:58:42PM +0200, Michel G. wrote:
> > Bonjour,
> >
> > Pour simplifier la configuration de mon environnement, j'ai placé ceci dans
> > mon /etc/environnement :
> > LC_ALL=fr_FR.ISO-8859-15
> > LANG=fr
> > LESSCHARSET=latin1
> >
> > Le fichier est bien pris en compte lorsque je me connecte (après le login)
> > mais ce n'est  par le cas lorsque je lance la commande su - pour devenir root
> > avec l'environnement complet.
> Oui et non, chez moi pas de pam_env.so pour /etc/pam.d/su, il y est
> pour login et rsh.

J'ai pourtant ajouté pam_env.so à /etc/pam.d/su :

sepultura:/etc/pam.d# diff -u su.orig su
--- su.orig	Fri Jan  5 23:52:30 2001
+++ su	Sat Jan  6 00:03:10 2001
@@ -1,7 +1,12 @@
+#%PAM-1.0
+
 #
 # The PAM configuration file for the Shadow `su' service
 #
 
+# 2000-12-31 CHiPs
+auth       required   pam_env.so debug readenv=1
+
 # Uncomment this to force users to be a member of group root
 # before than can use `su'. You can also add "group=foo" to
 # to the end of this line if you want to use a group other
@@ -37,3 +42,5 @@
 # to enable this functionality.
 # (Replaces the use of /etc/limits in old login)
 # session    required   pam_limits.so
+
+# EOF

J'ai donc fini par ajouter ceci à /etc/profile :

# 2000-01-12 CHiPs
# 2000-03-14 CHiPs : set -/+a vu sur debian-french
# 2001-01-03 CHiPs : inversé + t - (merci Xavier ;-)
if [ -f /etc/environment ]; then
  set -a
  . /etc/environment
  set +a
fi

Voilà,

-- 
Christophe "CHiPs" PETIT <chips@chips.fr.eu.org>   http://chips.free.fr/
Linux-Nantes: partagez votre savoir - http://www.linux-nantes.fr.eu.org/
Debian: When Code Matters More Than Commercials -
http://www.debian.org/  
[He who laughs last hasn't been told the terrible truth.]



Reply to: