Re: Setting variable in /etc/environment has no effect for ssh session

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

 



On Thu, 17 Apr 2025, Yu, Mingli wrote:

> Hi Expert,
> 
> I'm using openssh 9.9p2 and have defined the below logic into /etc/pam.d/sshd.
> session required pam_env.so
> 
> But the environment variables defined in /etc/environment file are not
> effective when login via ssh. Could you help to guide what's wrong here?

I don't know why this isn't working for you, AFAIK it supported.
Perhaps try turning on debugging logs from pam_env?
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



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

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux