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:25:12 UTC

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

     [ https://issues.apache.org/jira/browse/MESOS-5476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guangya Liu updated MESOS-5476:
-------------------------------
    Labels: newbie  (was: )

> 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
>              Labels: newbie
>
> {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)