Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6045025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:04:44+00:00 2026-05-23T07:04:44+00:00

My program must be run as administrator and creates some files. If I run

  • 0

My program must be run as administrator and creates some files. If I run it manually by right-click on the icon and selecting “run as administrator” — everything okay — all users have access to created files. But if program launched from the another program by ShellExecuteEx with “runas” verb — created files have no access entry for BUILTIN\Users group. Only administrator users can read those files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:04:44+00:00Added an answer on May 23, 2026 at 7:04 am

    Why not setup the linker flag (VC2008 and higher):
    Linker -> Manifest -> UAC Execution Level: requireAdministrator (/level=’requireAdministrator’)

    EDIT: I re-read the question, and found that problem is probably with NTFS file-security. This is not your program’s fault, but this is by design. Any user who creates files and folders is given permissions to that user only.

    Login as administrator user, create a folder. Then re-login as another user (however you like), and try to access/read/write/delete that folder – you cannot. The permissions are granted to administrator user, and not to everyone/users-group.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using NSMapTable in a program that must run under both 3.0 and 2.2.1.
I want to make a java program that must run for a specific number
I have a program called A. It produces a file, A.exe. A.exe MUST run
When I run the following script: c:\Program Files\foo\bar\scripy.py How can I refer to directory
Some users are suggesting that my (C#) program should be able to run scripts
All, I've run it down to this point by commenting, breakpoints, etc. The program
I have the need to express simple conditionals as program input. The input must
Most program languages have some kind of exception handling; some languages have return codes,
I would like my program to update itself (downloading a new exe and/or some
I'm building a program in WPF which must feature multi-language support, with the ability

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.