Timeline for Running a Command With Another User's PATH Variable
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 19, 2021 at 20:23 | answer | added | berndbausch | timeline score: 0 | |
| May 19, 2021 at 20:23 | answer | added | Jim L. | timeline score: 2 | |
| May 19, 2021 at 20:16 | comment | added | DanieleGrassini | sudo -u root sh -c 'echo $HOME' work in my shell. It print /root | |
| May 19, 2021 at 20:13 | comment | added | berndbausch | sudo su deploy -c "echo $PATH" Your shell replaces $PATH with the value it has in its environment before launching sudo. Same for the other examples. | |
| May 19, 2021 at 20:02 | review | First posts | |||
| May 21, 2021 at 8:00 | |||||
| May 19, 2021 at 19:57 | history | asked | jemiah | CC BY-SA 4.0 |