|
Bugzilla – Full Text Bug Listing |
| Summary: | Since 1.8.28, sudo -E does not preserve aliases anymore | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Guillaume Pavese <guillaume.pavese> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | guillaume.pavese |
| Priority: | low | ||
| Version: | 1.8.28 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: | Diff between sudoers file included in sudo-1.8.27-3.fc31 and sudo-1.8.28-1.fc31 | ||
|
Description
Guillaume Pavese
2019-10-24 20:39:46 MDT
Do you know what version of sudo you were running before? I don't think that bash can preserve aliases between shells, though it can export functions into the environment so that sub-shells pick them up. I went from working sudo-1.8.27-3.fc31 to sudo-1.8.28-1.fc31 If you comment out the following line in sudoers sudo should behave the way you expect: Defaults always_set_home In sudo 1.8.28 that setting will prevent HOME from being preserved which is why your .bashrc is not being read. Created attachment 532 [details]
Diff between sudoers file included in sudo-1.8.27-3.fc31 and sudo-1.8.28-1.fc31
This is not due to any change in sudo itself, it is due to the addition of the always_set_home setting in the default sudoers file shipped by fedora.
I've attached a diff of the two sudoers files installed by fedora. This is not the default sudoers that ships with sudo, it is a file maintained by the fedora project.
This is not due to a sudo bug, it is a change in fedora's sudoers configuration. Thanks, I confirm that this was the problem |