You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Guangya Liu (JIRA)" <ji...@apache.org> on 2016/05/29 02:23:12 UTC

[jira] [Created] (MESOS-5476) The document for `switch_user` is not accurate

Guangya Liu created MESOS-5476:
----------------------------------

             Summary: The document for `switch_user` is not accurate
                 Key: MESOS-5476
                 URL: https://issues.apache.org/jira/browse/MESOS-5476
             Project: Mesos
          Issue Type: Bug
            Reporter: Guangya Liu
            Priority: Minor


{code}
#ifndef __WINDOWS__
  add(&Flags::switch_user,
      "switch_user",
      "If set to `true`, the agent will attempt to run tasks as\n"
      "the `user` who submitted them (as defined in `FrameworkInfo`)\n"
      "(this requires `setuid` permission and that the given `user`\n"
      "exists on the agent).\n"
      "If the user does not exist, an error occurs and the task will fail.\n"
      "If set to `false`, tasks will be run as the same user as the Mesos\n"
      "agent process.\n"
      "NOTE: This feature is not yet supported on Windows agent, and\n"
      "therefore the flag currently does not exist on that platform.",
      true);
#endif // __WINDOWS__
{code}

If {{switch_user}} is set as true, it will first try to see if the {{task command}} also has a user, this user value will takes precedence than user defined in {{FrameworkInfo}}.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)