[sudo-users] handling of PATH, between "su - user" and "sudo --login -u user"

Todd C. Miller Todd.Miller at sudo.ws
Tue Jun 2 19:52:20 MDT 2020

This is due to the "secure_path" setting in the default RHEL sudoers
file.  If you either comment out that line or adjust it you will
get the behavior you desire.

For example, you could change it to the following:

Defaults secure_path = \

or just comment that line out to get the default PATH.

 - todd

More information about the sudo-users mailing list