Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Use Agent instances

  • Use sudo in the JobScheduler job

    • To access a file belonging to "other_user" use
      sudo -u other_user script_for_other_user.sh 

    • Make sure that other_user doesn't require a password for sudo. This can be achieved by adjusting the configuration from the sudoers file. This method has the advantage that it is extremely flexible - you can change the user more than once within a job. if sudo requires a password then you can use 
      echo "<password>" | sudo -S -u other_user script_for_other_user.sh