Linked by Thom Holwerda on Wed 14th Jun 2006 15:46 UTC, submitted by Gabor
Windows "Using a Limited account during your everyday work gives better protection against malicious software infection and accidental misconfiguration. But installing software or changing some system settings can be difficult in a low privileged environment. The sudoWn project can execute individual programs (or even a whole Windows shell) with temporary Administrator privileges under your user profile. This means you can use a low privileged environment and elevate your rights transitionally for software installation or systemwide configuration comfortably."
Thread beginning with comment 133394
To read all comments associated with this story, please click here.
another installed service
by PipoDeClown on Wed 14th Jun 2006 16:48 UTC
PipoDeClown
Member since:
2005-07-19

i dont like that to make it work you need an extra running service.

and that you need .net framework for such simple program.

lol, little copy/paste from the source code

ExecCmd("net.exe", "localgroup sudoers /ADD")
ExecCmd("cmd.exe", "/c rd /s /q """ + sSvcPath + """")
Directory.CreateDirectory(sSvcPath)
ExecCmd("cacls.exe", sSvcPath + " /E /G sudoers:C")

Edited 2006-06-14 16:51

RE: another installed service
by mdjake on Wed 14th Jun 2006 21:23 in reply to "another installed service"
mdjake Member since:
2006-06-14

Sharp eyes Pipo ;)

Actually you got me - I'm in the process of learning VB.net. But I think that in an always running Windows Service I should minimize memory usage (.NET is already a bloat) so I didn't import the System.DirectoryServices and System.Security namespaces just to execute those methods once in managed code on the service startup block).

I've searched alternatives for writing Windows Services other than .NET but if you know about one please tell me.

Why .NET? It's easy to learn and if you have an ATi card or already use Paint.NET chances of it's on your system already.

However I'm interested in ways to improve this project so give me advice. Now I care about the service part's memory usage, but the client part is secondary.

Reply Parent Bookmark Score: 1