Unix: sudo --preserve-env=MY_VAR vs sudo env MY_VAR=$MY_VAR

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=UJBs2O_ucvk



Duration: 2:19
0 views
0


sudo --preserve-env=MY_VAR vs sudo env MY_VAR=$MY_VAR
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/135796/doron-behar)Doron Behar
(unix.stackexchange.com/users/573555/paul-pazderski)Paul Pazderski
A special thanks goes out to the (https://unix.stackexchange.com/questions/752555/sudo-preserve-env-my-var-vs-sudo-env-my-var-my-var)Stackexchange community

I wish you all a wonderful day! Stay safe :)

sudo environment-variables permissions




Other Videos By Peter Schneider


2023-07-29Unix: What does ! in csh alias do
2023-07-29How do physical multi-core CPUs relate to vCPUs
2023-07-29Why can't GCC optimize constructor call via alias?
2023-07-29Unix: Is there a better way to replace the actual shell in a script on a macOS/BSD-like OS?
2023-07-29Mathematica: Plotting regions with zero eigenvalues of a matrix
2023-07-29Dba: Is calling a database class on app creation correct for pooling?
2023-07-29Chrome Driver Manager not working on Chrome Version:115.0.5790
2023-07-29Salesforce: How to identify which region the LWC component is locating in App Page or Record Page?
2023-07-29Gis: Using random value generator within if/else statement in Field Calculator in ArcGIS Pro
2023-07-29Tex: How to get same TOC for tex4ht as with PDF?
2023-07-29Unix: sudo --preserve-env=MY_VAR vs sudo env MY_VAR=$MY_VAR
2023-07-29Mathematica: What is Mathematica's equivalent to Maple's collect with distributed option?
2023-07-29Unix: How to make bash not assign a n to a variable?
2023-07-29Salesforce: LWC: create hyperlink to the related opportunity record
2023-07-29Gis: Iterating over LineString and applying filter in PostGIS
2023-07-29Devtools not working and giving strange error
2023-07-29Softwareengineering: Does 3-valued logic ever provide practical benefits over 2-valued logic?
2023-07-29Mathematica: Why the white vertical line on this DensityPlot?
2023-07-29What are two numbers of 16 decimal digits precision that map to the same double-precision float?
2023-07-29Sending mutiple characters using USART1 on an atmega4809 results in 0xFF to be send
2023-07-29Ux: What was the first application to use colon as an emoji picker?



Tags:
sudo
environment-variables
permissions