Red Hat Bugzilla – Bug 218024
rsh/rlogin ignore pam_env module environment
Last modified: 2013-04-30 19:34:42 EDT
Description of problem:
Both rlogin and rsh do not get environment established by
pam_env module by pam_getenvlist and do not pass it to
For rlogin the problem is hidden by the fact that in.rlogind
calls login binary itself which in turn may do the right thing.
Version-Release number of selected component (if applicable):
rsh session does not have environment configured
by pam_env. This may also apply to rlogin.
Session has environment set by pam_env.
Created attachment 142839 [details]
Could you please test this package and send me your results? I think, problem
is fixed now. Thanks much
This does not work. The problem is that you set environment
in doauth function, and later on environment is overwriteen
in doit function by assignement:
environ = envinit;
Shouldn't we also move what's contained in envinit to
properly configured pam_env.conf???
Now for the rlogin. It seems to work but probably only
because in.rlogind always calls login which properly sets
environment. The problem however is that current configuration
in /etc/pam.d/rlogin causes pam_env to be called twice. Once
by in.rlogind and for the second time by login program. This
means that unexpectedly we may end up with variables set
by OVERRIDE clause in pam_env.conf and not DEFAULT. I guess
/etc/pam.d/rlogin should not execute pam_env as it is going
to be done by login program anyway.
Created attachment 143501 [details]
added options from pam_env to environment
Oh, I didn't see that rsh overwrite environ. Now it works correctly. Updated
package will be avaliable through update tomorrow