Skip to content

friendly errors for UAC misbehavior in windows installers #53154

Closed

Description

@techtonik
mannequin
BPO 8908
Nosy @tarekziade, @merwok, @zooba, @dstufft
Files
  • wget-0.6.win32.force.exe
  • 8908.windows.uac.research.comments.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/tarekziade'
    closed_at = <Date 2021-02-03.18:16:23.056>
    created_at = <Date 2010-06-05.16:44:59.669>
    labels = ['library']
    title = 'friendly errors for UAC misbehavior in windows installers'
    updated_at = <Date 2021-02-03.18:16:23.055>
    user = 'https://bugs.python.org/techtonik'

    bugs.python.org fields:

    activity = <Date 2021-02-03.18:16:23.055>
    actor = 'steve.dower'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2021-02-03.18:16:23.056>
    closer = 'steve.dower'
    components = ['Distutils']
    creation = <Date 2010-06-05.16:44:59.669>
    creator = 'techtonik'
    dependencies = []
    files = ['17563', '17564']
    hgrepos = []
    issue_num = 8908
    keywords = ['patch']
    message_count = 6.0
    messages = ['107149', '107150', '107237', '117688', '221241', '386306']
    nosy_count = 5.0
    nosy_names = ['techtonik', 'tarek', 'eric.araujo', 'steve.dower', 'dstufft']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue8908'
    versions = ['3rd party', 'Python 2.7', 'Python 3.2']

    Activity

    1. techtonik commented on Jun 5, 2010

      techtonikmannequin
      MannequinAuthor

      The problem investigated in bpo-8870 detected that bdist_wininst installers fail in Vista and Windows 7 with enabled UAC (user access control) when run from local drives with non-MS file systems and from network drives.

      The error message returned in this case is not explanative at all.
      "Failed to start elevated process (ShellExecute returned 5)"

      Further investigation revealed that if network samba share requires authentication, and authentication passes, then the installer won't fail. Unfortunately, I can not setup network access to unauthenticated Samba shares right now to test behavior, but I attach installer generated with --user-access-control=force in case somebody can help.

      The error message needs to be improved to give users immediate hint what Windows UAC doesn't allow to run privileged executables from non-MS file systems and/or network drives.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Jun 5, 2010
    3. techtonik commented on Jun 5, 2010

      techtonikmannequin
      MannequinAuthor

      A proper user error message requires investigation of behavior on anonymous samba shares. Attaching patch to install.c with backlinks to relevant ticket descriptions.

    4. changed the title [-]friendly errors for UAC errors in windows installers[/-] [+]friendly errors for UAC misbehavior in windows installers[/+] on Jun 5, 2010
    5. merwok commented on Jun 6, 2010

      @merwok
      Member

      Side remarks about tracker process:

      1. I’m not sure attaching binary executable files is helpful; if I ran Windows, I wouldn’t run them.
      2. Select the 3.3 version for bugs that won’t be fixed to 3.2. Selecting both is redundant: 3.2 is current py3k trunk, it’s not a different branch than 3.3, in contrary to 2.6 and 2.7.
        HTH
    6. merwok commented on Sep 30, 2010

      @merwok
      Member

      Can you please tell if this still applies now that distutils has been reverted to its previous stable state? Can you test with distutils2? Thanks in advance.

    7. BreamoreBoy commented on Jun 22, 2014

      BreamoreBoymannequin
      Mannequin

      The patches cannot be used as the OP hasn't signed the CLA.

    8. zooba commented on Feb 3, 2021

      @zooba
      Member

      Distutils is now deprecated (see PEP-632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.

      If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools

    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions