Check if script is executed with elevated permissions: using sudo on Linux or administrator rights on Windows