How to use Service/Client configuration

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
marvin1
Posts: 2
Joined: Tue Feb 12, 2013 12:51 pm

How to use Service/Client configuration

Post by marvin1 »

In the following post:
http://forum.voidtools.com/viewtopic.ph ... =768#p2801

a Service/Client configuration is mentioned that allows running everything without administrator privileges. Can somebody tell me how to enable it?

Alternatively, is there a way to run two instances of everything:
1. One (hidden) with admin privileges in the background that monitors the volume and fills the database
2. One (visible) with user privileges which uses the database provided by the first.

I tried the above an linking them via ETP but that requires sharing the entire hard drive as windows share to be able to open any found files.
Last edited by marvin1 on Wed Feb 13, 2013 4:57 pm, edited 1 time in total.
void
Developer
Posts: 16690
Joined: Fri Oct 16, 2009 11:31 pm

Re: Hwo to use Service/Client configuration

Post by void »

a Service/Client configuration is mentioned that allows running everything without administrator privileges. Can somebody tell me how to enable it?
It has not been released yet.

For now, Everything is administrative use only..
marvin1
Posts: 2
Joined: Tue Feb 12, 2013 12:51 pm

Re: How to use Service/Client configuration

Post by marvin1 »

Thanks for the answer. I know implementing a service/client architecture is a pain...

May I suggest an alternative, easier to implement solution?

Everything could check on startup under which user account it is running. If it runs as LocalSystem (i.e. as a service) it could launch any child process (e.g. for opening a found file) as the currently logged in user. The implementation effort would be much less than for a service/client architecture.

Instead of just starting a process, the procedure would be as follows
1. Use WTSGetActiveConsoleSessionId to get the access token of the currently logged in user. (http://msdn.microsoft.com/en-gb/library ... 85%29.aspx)
2. Use DuplicateTokenEx to derive a new access token. (http://msdn.microsoft.com/en-us/library ... 85%29.aspx)
3. And finally start the process as the currently logged in user with CreateProcessAsUser and the derived token. (Must be LocalSystem to do this!) (http://msdn.microsoft.com/en-us/library ... 85%29.aspx)

Let me know if there is anything I can do to help. I would love to allow my users access to Everything.
Post Reply