Timeline for Can I run a script using sudo? Like this: sudo script.sh
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 15, 2023 at 13:25 | comment | added | Flimm | You will need to prefix the script name with ./ , like this: sudo ./script.sh | |
| May 15, 2023 at 13:25 | history | edited | Flimm | CC BY-SA 4.0 | Improve title |
| Jun 15, 2020 at 9:46 | answer | added | Albion Shala | timeline score: 1 | |
| Jun 15, 2020 at 8:02 | history | edited | 0xC0000022L | CC BY-SA 4.0 | added 21 characters in body |
| Jun 15, 2020 at 7:49 | vote | accept | B K Karthik | ||
| Jun 15, 2020 at 7:46 | comment | added | Francesco | Did you try something? You could easily find the answer to your question just trying to write a script with a command that requires root privileges and running it with sudo. | |
| Jun 15, 2020 at 7:45 | answer | added | pLumo | timeline score: 1 | |
| Jun 15, 2020 at 7:25 | history | asked | B K Karthik | CC BY-SA 4.0 |