Skip to main content
added 13 characters in body
Source Link
pLumo
  • 23.2k
  • 2
  • 43
  • 70

Yes, all the commands in your script will run as root. See also.

But keep in mind that running your whole script with sudo will also affect some environment variables like $USER, which will be root instead of your normal users name, but depending on your systemthe sudo configuration it will not affect others, e.g. $HOME. See also.

Yes, all the commands in your script will run as root. See also.

But keep in mind that running your whole script with sudo will also affect some environment variables like $USER, which will be root instead of your normal users name, but depending on your system it will not affect others, e.g. $HOME. See also.

Yes, all the commands in your script will run as root. See also.

But keep in mind that running your whole script with sudo will also affect some environment variables like $USER, which will be root instead of your normal users name, but depending on the sudo configuration it will not affect others, e.g. $HOME. See also.

Source Link
pLumo
  • 23.2k
  • 2
  • 43
  • 70

Yes, all the commands in your script will run as root. See also.

But keep in mind that running your whole script with sudo will also affect some environment variables like $USER, which will be root instead of your normal users name, but depending on your system it will not affect others, e.g. $HOME. See also.