I'm working on an installer script for the latest ATI drivers (as they are not in repo) and was wondering if I need to include sudo in the script, because it will be needed for the install.
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
no, if you need root privileges you call the script with sudo. |
|||||||
|
|
All commands in a script are run as the calling user. So if I write this script:
I can successfully produce a file containing "I am running as root" at
Or as the superuser:
|
|||
|
|