Re: /etc/environment not available for normal user while for root it is[was Re: sudo not respecting /etc/sudoers]
On Sun, May 3, 2015 at 6:51 PM, Nicolas George <george@nsup.org> wrote:
> 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.
$ ls /etc/pam.d
-rw-r--r-- 1 root root 235 Sep 30 2014 atd
-rw-r--r-- 1 root root 384 Nov 20 02:11 chfn
-rw-r--r-- 1 root root 92 Nov 20 02:11 chpasswd
-rw-r--r-- 1 root root 581 Nov 20 02:11 chsh
-rw-r--r-- 1 root root 1208 May 2 19:24 common-account
-rw-r--r-- 1 root root 1221 May 2 19:24 common-auth
-rw-r--r-- 1 root root 1480 May 2 19:24 common-password
-rw-r--r-- 1 root root 1189 May 2 19:24 common-session
-rw-r--r-- 1 root root 1154 May 2 19:24 common-session-noninteractive
-rw-r--r-- 1 root root 606 Oct 26 2014 cron
-rw-r--r-- 1 root root 69 Sep 17 2014 cups
-rw-r--r-- 1 root root 1298 Nov 5 02:31 lightdm
-rw-r--r-- 1 root root 1308 Nov 5 02:31 lightdm-autologin
-rw-r--r-- 1 root root 437 Nov 5 02:31 lightdm-greeter
-rw-r--r-- 1 root root 4756 Nov 20 02:18 login
-rw-r--r-- 1 root root 92 Nov 20 02:11 newusers
-rw-r--r-- 1 root root 520 Aug 9 2014 other
-rw-r--r-- 1 root root 92 Nov 20 02:11 passwd
-rw-r--r-- 1 root root 255 Nov 28 14:39 polkit-1
-rw-r--r-- 1 root root 168 Sep 20 2014 ppp
-rw-r--r-- 1 root root 143 Mar 30 03:59 runuser
-rw-r--r-- 1 root root 138 Mar 30 03:59 runuser-l
-rw-r--r-- 1 root root 2133 Mar 23 05:02 sshd
-rw-r--r-- 1 root root 2257 Nov 20 02:11 su
-rw-r--r-- 1 root root 95 Mar 12 08:59 sudo
-rw-r--r-- 1 root root 220 Apr 16 21:22 systemd-user
-rw-r--r-- 1 root root 108 Oct 15 2014 xscreensaver
I think I am using lightdm as display manager/login manager. (Any way
to 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 invoked.
> If it is not, add it
> by imitating another file that does it right (xdm for example)
I really have no idea which file to add. <n00b here!>
> and file a
> bug report.
Where?
--
Avinash Sonawane (RootKea)
PICT, Pune
http://www.rootkea.wordpress.com
Reply to: