in reply to Creating a process as a normal user without password (Linux 'su' for Windows 7?)

As for the security problems of the windows service: Did you try to enable "Allow service to interact with desktop" in the services properties?

As long as the users are logged on, you could also run a system tray application on the users desktop which interacts with the service.

Don't use '#ff0000':
use Acme::AutoColor; my $redcolor = RED();
All colors subject to change without notice.
  • Comment on Re: Creating a process as a normal user without password (Linux 'su' for Windows 7?)

Replies are listed 'Best First'.
Re^2: Creating a process as a normal user without password (Linux 'su' for Windows 7?)
by afoken (Chancellor) on Nov 04, 2011 at 10:17 UTC
    As long as the users are logged on, you could also run a system tray application on the users desktop which interacts with the service.

    I think that's also the way officially proposed by Microsoft: Write a privileged background service and use a dedicated application running in the context of an ordinary user for the user interface. Windows offers serveral ways for IPC between the two processes. Named pipes and IP sockets (via localhost) are commonly used.

    To start an unprivileged process running under the user account, the service process simply sends a message to the user interface process, containing all required information.

    And to start the unprivileged user interface process, use one of the various autostart mechanisms. Creating a shortcut in the Autostart group of the start menu is a very simple way, other ways need some registry editing.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)