sudo-for-cygwin
sudo-for-cygwin copied to clipboard
Automatically starting sudoserver
Hi,
I've been looking into autostarting sudoserver when I log in, without having a terminal window displayed. I have come upon a solution that seems to work. Let me know if you have anything simpler!
- Create a Scheduled Event to launch sudoserver:
- Launch Task Scheduler from the Windows Start menu
- In the 'Actions' menu at the right, click 'Create Task':
- Fill in the 'General' tab as below:
Make sure that 'Run with highest priveleges' is selected!
- On the 'Actions' tab, click 'New' and fill in the dialog box as below:
and click "Ok". - The resulting action should look like this
- Fill in the Triggers tab:
- Fill in the Conditions tab:
- Fill in the Settings tab:
- Click on 'Ok' to save the new event:
- On the 'Action' panel click on 'Run' to execute the event
- Now open a Cygwin window and test it out by typing:
$ sudo touch /etc/hosts
If you get an error message, something is wrong. Otherwise, success!
Debugging tips: Replace 'run.exe' with 'mintty.exe' to open a window showing the output of sudoserver.py.