Gain admin rights
Gain admin rights
Hi,
it would be nice to have an option to gain Admin rights if needed. By now I have to (re)start XYplorer to achieve this.
Chris
it would be nice to have an option to gain Admin rights if needed. By now I have to (re)start XYplorer to achieve this.
Chris
Re: Gain admin rights
Bump.
I'm about to start to play around with VM's to evaluate their practical benefits in daily use ("secure" boxes, development etc). In particular I'm interested to find a good balance between sealing and keeping a basic ease of use. One approach will be to associate one host folder to each vm to aggregate vm specific sets of host folders underneath using symlinks.
Since my host account is a standard one w/o admin rights and UAC all the way up (a setup I still consider a godsend, btw) XY runs unelevatedly by default. I'm afraid, having to start an additional elevated instance each time I want to create a symlink will become painful quite soon.
Hence: is it a major deal to add a "ask-for-admin-rights"-dialog each time it is required during an unelevated session?
Cheers,
Filehero
I'm about to start to play around with VM's to evaluate their practical benefits in daily use ("secure" boxes, development etc). In particular I'm interested to find a good balance between sealing and keeping a basic ease of use. One approach will be to associate one host folder to each vm to aggregate vm specific sets of host folders underneath using symlinks.
Since my host account is a standard one w/o admin rights and UAC all the way up (a setup I still consider a godsend, btw) XY runs unelevatedly by default. I'm afraid, having to start an additional elevated instance each time I want to create a symlink will become painful quite soon.
Hence: is it a major deal to add a "ask-for-admin-rights"-dialog each time it is required during an unelevated session?
Cheers,
Filehero
-
admin
- Site Admin
- Posts: 65236
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Gain admin rights
OK: On-demand-elevation would be possible but would be mean to ...
a) restart the app "as admin" (after saving all settings) = not really cool IMO.
b) or to pack all operations that need elevated privileges into a separates helper exe = also uncool.
So, why don't you simply run XY as admin right away?
a) restart the app "as admin" (after saving all settings) = not really cool IMO.
b) or to pack all operations that need elevated privileges into a separates helper exe = also uncool.
So, why don't you simply run XY as admin right away?
FAQ | XY News RSS | XY X
Re: Gain admin rights
Because XY would exhibit the "wrong" session context with all user-specific paths pointing to the "wrong" targets.admin wrote:So, why don't you simply run XY as admin right away?
Cheers,
Filehero
PS: Verdammt ist Dortmund gut ....
Re: Gain admin rights
Adding an option to restart XYplorer in elevated mode would be sufficient for me.
Re: Gain admin rights
Well I thought implementation would be more straight forward. Something like: OS throws some sort of catchable event upon which the famous dialog can be brought up. Naive me. I guess it's a VB6 thing, right?
I also think a) and b) are "uncool" in general. Clueless now - also with regard to my wish.
Cheers,
Filehero
I also think a) and b) are "uncool" in general. Clueless now - also with regard to my wish.
Cheers,
Filehero
-
admin
- Site Admin
- Posts: 65236
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Gain admin rights
"wrong" session context ... hmm good point.
OS throws some sort of catchable event upon which the famous dialog can be brought up: Yes, I hoped to find something about this but no success.
(Nothing to do with VB6) Some day I will see it...
OS throws some sort of catchable event upon which the famous dialog can be brought up: Yes, I hoped to find something about this but no success.
FAQ | XY News RSS | XY X
Re: Gain admin rights
The windows explorer isn't restarted when it requests admin rights nor does it use a special helper module, right? So there has to be a way to autoelevate a program after confirming the dialog...
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 65236
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Gain admin rights
Yes, I think so. But how?highend wrote:The windows explorer isn't restarted when it requests admin rights nor does it use a special helper module, right? So there has to be a way to autoelevate a program after confirming the dialog...
FAQ | XY News RSS | XY X
Re: Gain admin rights
One of my scripts helped you out? Please donate via Paypal
-
PeterH
- Posts: 2826
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Gain admin rights
Do you want XY to run elevated, or do you want a function (i.e. some piece of work) to be elevated?"Then, the original application restarts, running as an elevated administrator. "
For me I generally want XY to run non-elevated, and only if needed for some action I want to be able to allow it. This way I'm generally protected from making some (but destructive!) errors by accident.
Re: Gain admin rights
Same here.PeterH wrote:For me I generally want XY to run non-elevated, and only if needed for some action I want to be able to allow it. This way I'm generally protected from making some (but destructive!) errors by accident.
My current workflow involves starting (upon logon) two instances of XY: one non-elevated and one elevated. The second one is used if and only if the first one hasn't enough rights to perform what's requested. Other than that, the elevated one always resides hidden in the tray.
So far this works, with little caveats, most notably:
- upon logoff I have to pay attention to what XY I close first, else I'll mess with saving settings;
- when I update XY, I have either to close elevated XY or perform update from within elevated XY.
Costs/benefits balance? I guess benefits outweight costs, so far.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
PeterH
- Posts: 2826
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Gain admin rights
Sounds very reasonable.Marco wrote:My current workflow involves starting (upon logon) two instances of XY: one non-elevated and one elevated.
It's not often that I use XY elevated - so I start it only when needed.
If I often would run both in parallel I for my part would use different .ini files, so both would be independant. But that's just a matter of habbits.
Maybe it would be helpful if we could "route" commands from the non-elevated to the elevated XY - or is this already possible? (Didn't follow that discussions close enough...)
-
admin
- Site Admin
- Posts: 65236
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Gain admin rights
I know this code. It restarts the app elevated. Not what we want. But maybe there is no other way. Hm.
FAQ | XY News RSS | XY X
XYplorer Beta Club