cygrunsrv
Home ] Up ]
 

 

All of the following worked for me, but your mileage may vary...

  • cron:
    • Run cygrunsrv -I cron -p /usr/sbin/cron -a -D -e "CYGWIN=tty ntsec" -d "CYGWIN Cron"

  • sshd:
    • Run ssh-host-config and the script will install the service for you.

  • inetd:
    • Install cygwin. 
    • Run iu-config at the Cygwin prompt.
    • Run mkpasswd -l > /etc/passwd at the Cygwin prompt.  This creates the passwd file which is similar in format and function to the *nix passwd file.  Run mkpasswd with no parameters for a usage summary.  You might need to add a -d parameter to grant domain users access.
    • Edit /etc/passwd and delete everything but the accounts you want to have access permissions.  (In most cases, you'll end up with only two lines in this file -- your account and Administrator.)
    • Make sure that your home directory (ie, c:\cygwin\home\userid\) exists.
    • Run the following two commands:
      cygrunsrv -I inetd -d "CYGWIN inetd" -p /usr/sbin/inetd -a -d -e CYGWIN="tty ntsec"
      cygrunsrv -S inetd
    • Now, you should be able to telnet and ftp into your machine
 

 

 

My name is Michael Oliver, and I can be contacted by email here.
The current time is Sunday, 19-Nov-2017 05:02:53 UTC.
This page was last modified on Friday, 11-Mar-2011 21:02:00 UTC.
This page has received 10092 hits since April 1, 2002.