Skip to content

bin/flutter says running as root is not recommended, yet disallows it #9634

Closed

Description

@mit-mit

If you try to run flutter as root, you get a message saying (my emphasis) "We strongly recommend running the flutter tool without superuser privileges."
https://github.com/flutter/flutter/blob/master/bin/flutter#L52

However, despite saying this is not recommended the script simply terminates. We should either allow this, or change the terminology to say it's not supported.

Activity

  1. mit-mit commented on Apr 27, 2017

    @mit-mit
    MemberAuthor

    This came up in context of #9547

  2. changed the title [-]flubin/flutter says running as root is not recommended, yet disallows it[/-] [+]bin/flutter says running as root is not recommended, yet disallows it[/+] on Apr 27, 2017
  3. Hixie commented on Apr 27, 2017

    @Hixie
    Contributor

    It doesn't disallow it, it just doesn't make it easy. This is intentional, it raises the bar so that you at least have to be comfortable enough editing code and figuring out how to recompile the tool before you can do it. If you can't figure that out, you almost certainly aren't going to understand the implications of running as root.

    There's really no reason to run as root. It's a terrible thing to do.

    I like the current terminology because it's not overly paternalistic (it's even a bit tongue-in-cheek), but it's still completely accurate (we really don't recommend it).

    I'm open to changing the text but I think it's important that we strike this same tone while remaining as accurate.

  4. mit-mit commented on May 18, 2017

    @mit-mit
    MemberAuthor
  5. added 10 commits that reference this issue on Jul 1, 2019
  6. added a commit that references this issue on Jul 30, 2019
  7. github-actions commented on Sep 4, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions