Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Unable to access administrative shares #14903

Closed
nmangue opened this issue Mar 5, 2024 · 2 comments · Fixed by #14904
Closed

Bug: Unable to access administrative shares #14903

nmangue opened this issue Mar 5, 2024 · 2 comments · Fixed by #14904

Comments

@nmangue
Copy link
Contributor

nmangue commented Mar 5, 2024

Description

I am using Files in an enterprise environment to access a server administrative shares drive by using \myserver\c$. Doing so I get an error message (cf. screenshot). The error occurs on the first call to WNetAddConnection3 on NetworkDrivesAPI@136 which returns Win32Error.ERROR_ACCESS_DENIED. This is normal since Files is running with a user account and I need to use an administrator account to access this share. However the rights elevation is currently not triggered. Reusing the following block to trigger the elevation does work.
Capture d’écran 2024-03-05 091807

Steps To Reproduce

  1. Launch Files with a "low-privileged" user account
  2. Access a server adminsitrative share (\myserver\c$)

Requirements

Ask for credentials if the current user is not allow to access the share

Files Version

3.2.3.0

Windows Version

Windows 10 Entreprise 22H2 19045.3324

Log File

NA

@0x5bfa
Copy link
Member

0x5bfa commented Mar 5, 2024

Thanks for the feedback.
Please get approval (Ready for build) from maintainers before working on issues to avoid work being wasted in the future.

@Josh65-2201 Josh65-2201 moved this from 🆕 New to 🏗 In progress in Files task board Mar 5, 2024
@Josh65-2201 Josh65-2201 changed the title Unable to access administrative shares Bug: Unable to access administrative shares Mar 5, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Files task board Mar 5, 2024
@yaira2
Copy link
Member

yaira2 commented Mar 5, 2024

@nmangue thank you for the report and fix, this will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants