Bugzilla – Bug 907
"sudo -i" without pam support emits "sudo: /etc/environment: No such file or directory"
Last modified: 2019-12-31 15:08:05 MST
If you build sudo-1.8.28 or greater without pam support, "sudo -i" emits the following message: ~ $ sudo -i sudo: /etc/environment: No such file or directory Of course this only happens on a system without linux-pam package being installed which provides the /etc/environment file (required for the pam_env module). See Gentoo downstream bug report: https://bugs.gentoo.org/698946
I just committed a fix for this: https://www.sudo.ws/repos/sudo/rev/f85ff5ee2caf
Our downstream bug reporter has confirmed the fix works and thus we have closed the downstream bug.
Fixed in sudo 1.8.30