This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygrunsrv can't run as administrator


The administrator account has by default no right to start services.
You can add that right by calling

editrights -u administrator -a SeServiceLogonRight

Corinna

thx but that wasn't it either, however have worked around by pointing cygrunsrv --path to a script hehe


cygrunsrv -I fetchmail --path /bin/bash.exe -a /home/Administrator/sh.sh --shutdown

$ cat sh.sh
#!/bin/bash

exec su Administrator -c "/bin/fetchmail -N" < /home/Administrator/pass.txt

_________________________________________________________________
Instant message during games with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com



-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]