Click here to Skip to main content
15,884,836 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: File delete permission problem Pin
Gerry Schmitz13-Jul-18 8:37
mveGerry Schmitz13-Jul-18 8:37 
GeneralRe: File delete permission problem Pin
primem0ver13-Jul-18 9:32
primem0ver13-Jul-18 9:32 
GeneralRe: File delete permission problem Pin
Gerry Schmitz13-Jul-18 10:18
mveGerry Schmitz13-Jul-18 10:18 
GeneralRe: File delete permission problem Pin
primem0ver13-Jul-18 13:41
primem0ver13-Jul-18 13:41 
GeneralRe: File delete permission problem Pin
Gerry Schmitz14-Jul-18 4:48
mveGerry Schmitz14-Jul-18 4:48 
AnswerRe: File delete permission problem Pin
Dave Kreskowiak13-Jul-18 9:53
mveDave Kreskowiak13-Jul-18 9:53 
GeneralRe: File delete permission problem Pin
primem0ver13-Jul-18 10:35
primem0ver13-Jul-18 10:35 
GeneralRe: File delete permission problem Pin
Dave Kreskowiak13-Jul-18 11:07
mveDave Kreskowiak13-Jul-18 11:07 
primem0ver wrote:
From my experience, applications have their own permission sets. Are you saying this is not the case?


Correct. Applications ALWAYS run as the user the launched them, inheriting the security token (permissions) of the user. There is no way to get around this.

Applications also cannot grant themselves permissions over and above what they inherited from launch. That was be a massive security risk. Windows, and every other O/S with security built into it, simply does not allow that to happen.

The sole exception of this is when running under Vista and above, an administrator user account can be split into two security contexts, the normal user version of the account and the administrator version. Normally, everything runs as the normal user account, unless admin permissions are required. That's when User Account Control comes in and asks if you really want to run something as an administrator, or if you explicitly launch the process "as administrator".

You've got a different problem with your code.

It's not permissions.

GeneralRe: File delete permission problem Pin
primem0ver13-Jul-18 14:05
primem0ver13-Jul-18 14:05 
GeneralRe: File delete permission problem Pin
Dave Kreskowiak13-Jul-18 17:23
mveDave Kreskowiak13-Jul-18 17:23 
GeneralRe: File delete permission problem Pin
Gerry Schmitz14-Jul-18 5:01
mveGerry Schmitz14-Jul-18 5:01 
GeneralRe: File delete permission problem Pin
primem0ver16-Jul-18 5:36
primem0ver16-Jul-18 5:36 
GeneralRe: File delete permission problem Pin
Dave Kreskowiak16-Jul-18 5:49
mveDave Kreskowiak16-Jul-18 5:49 
QuestionError in list saved in user settings: strings doesn't save Pin
SebGM20186-Jul-18 20:03
SebGM20186-Jul-18 20:03 
AnswerRe: Error in list saved in user settings: strings doesn't save Pin
Richard MacCutchan6-Jul-18 20:58
mveRichard MacCutchan6-Jul-18 20:58 
AnswerRe: Error in list saved in user settings: strings doesn't save Pin
Dave Kreskowiak7-Jul-18 6:02
mveDave Kreskowiak7-Jul-18 6:02 
QuestionC# Student Programming Pin
Member 1388662825-Jun-18 10:36
Member 1388662825-Jun-18 10:36 
AnswerRe: C# Student Programming Pin
Dave Kreskowiak25-Jun-18 11:18
mveDave Kreskowiak25-Jun-18 11:18 
AnswerRe: C# Student Programming Pin
Maciej Los25-Jun-18 20:01
mveMaciej Los25-Jun-18 20:01 
GeneralRe: C# Student Programming Pin
Mycroft Holmes25-Jun-18 20:16
professionalMycroft Holmes25-Jun-18 20:16 
PraiseRe: C# Student Programming Pin
Maciej Los25-Jun-18 20:49
mveMaciej Los25-Jun-18 20:49 
AnswerRe: C# Student Programming Pin
Gerry Schmitz26-Jun-18 5:53
mveGerry Schmitz26-Jun-18 5:53 
RantRe: C# Student Programming Pin
Eddy Vluggen2-Jul-18 23:53
professionalEddy Vluggen2-Jul-18 23:53 
QuestionAccess to and capture NMEA GPS sentences Pin
Member 1352644624-Jun-18 4:26
Member 1352644624-Jun-18 4:26 
AnswerRe: Access to and capture NMEA GPS sentences Pin
Richard MacCutchan24-Jun-18 4:40
mveRichard MacCutchan24-Jun-18 4:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.