videoslooki.blogg.se

Passwordless sudo
Passwordless sudo










passwordless sudo

#PASSWORDLESS SUDO PASSWORD#

The Administrative user may not necessarily be logged in.Įssentially, I'm looking for a password-less sudo-like feature for a GUI program: When the event occurs for the regular user, the system should be able to run a specific GUI program with elevated privileges without requiring her (the regular user) to enter even her own password (let alone requiring MonTask.exe runs with elevated privileges (to allow it to later launchģ. "Run the task only when the user is logged on" option.īut the problem still is, the following 3 conditions cannot hold true all together:Ģ. Now, I did refer to the "Task Security Context" TechNet article, where it is recommended that we use the Task Manager when the event occurs but I cannot see its GUI/window! System("cmd /c path/to/MyApp.exe") However, the problem is: I can see the MyApp.exe process listed in Now, MonTask.exe is a C-based program that itself launches MyApp.exe from inside of it, like so:

passwordless sudo

Windows Startup trigger, like so: Trigger: At StartupĪction: Start a program Program/Script: cmd Add arguments (optional): /c path/to/MonTask.exe MonTask.exe early on, I configure it in Windows Task Scheduler to start running on the So for this, I created a background monitoring program, MonTask.exe, that continuously monitors for the event. This event will occur only when a user is logged on and is interacting with the system. By "system-wide event" I mean that even a regular user would be able to see this event. MyApp.exe must then run with elevated (or, Administrative) privileges, without requiring this regular user to enter the Administrative password. I need to launch a GUI app, MyApp.exe, for a regular (or, non-Administrative) user whenever a system-wide event occurs.












Passwordless sudo