[sudo-users] sudo keeps the SHELL of the calling user

Michael Schwager mschwager at mochotrading.com
Tue Oct 6 09:23:20 MDT 2015


Hello,
We are running sudo-1.8.6 on a CentOS 6.5 machine. I have a problem in that
sudo is preserving the calling user's SHELL. The basic question is: Absent
any env_keep directives in any file in /etc/sudoers*, what would compel
sudo to preserve SHELL? Note that the machine is running PAM so
/etc/environment should not apply, and according to the man page the SHELL
should not be preserved.

You can see my question in more detail here:
http://unix.stackexchange.com/questions/234151/how-to-discard-shell-environment-variable-in-sudo
.

Thanks.


*- Mike Schwager*

*  Linux Network Engineer, Mocho Trading LLC*
*  312-646-4783 Phone    312-637-0011 Cell    312-957-9804 Fax*

-- 
This message is for the named person(s) use only. It may contain 
confidential proprietary or legally privileged information. No 
confidentiality or privilege is waived or lost by any mistransmission. If 
you receive this message in error, please immediately delete it and all 
copies of it from your system, destroy any hard copies of it and notify the 
sender. You must not, directly or indirectly use, disclose, distribute, 
print, or copy any part of this message if you are not the intended 
recipient. Mocho Trading LLC reserves the right to monitor all e-mail 
communications through its networks. Any views expressed in this message 
are those of the individual sender, except where the message states 
otherwise and the sender is authorized to state them to be the views of any 
such entity.


More information about the sudo-users mailing list