Versions Compared

Key

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

...

  • Display feature availability
    EndingWithRelease1.11
  • Jira
    serverSOS JIRA
    columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
    serverId6dc67751-9d67-34cd-985b-194a8cdc9602
    keyJS-1565

 

Excerpt

There are

some more possible ways of accessing an object

multiple ways running jobs with different user ids in order to access objects belonging to a different user:

...

  • 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 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

...