search for: cygrunsrv

Displaying 20 results from an estimated 44 matches for "cygrunsrv".

2002 Nov 29
2
Rsync service on Win2k?
...uld give me a quick tip or two on getting rsync working as a Win2k service. I'm not real proficient with Win2k, so be gentle. The posts I could find in the archive all seeem to have gotten past this basic problem! I've installed the latest Cygwin, as well as the Cygwin rsync package. cygrunsrv -I "rsyncd" -d "Rsync daemon" -p /usr/bin/rsync.exe -a "--config=/etc/rsyncd.conf --daemon" installs the service; rsyncd.exe --config=/etc/rsyncd.conf --daemon runs it from a bash shell, but I can't seem to start it either using cygrunsrv -S "rsyncd",...
2003 Feb 12
4
rsync in cygwin as service
...ps PID PPID PGID WINPID TTY UID STIME COMMAND 480 1 480 480 con 500 04:15:03 /usr/bin/bash 1428 480 1428 1420 con 500 05:26:46 /usr/bin/ps Administrator@dm-w2ks /usr/bin So I'm trying to set it as service: C:\cygwin\bin>cygrunsrv -I "RSYNC" -d "Rsync" -p /bin/rsync.exe -a "--daemon --n o-detach" C:\cygwin\bin>cygrunsrv -S "RSYNC" cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. And I see in event log: The description...
2006 Jan 09
0
[PATCH] Add service dependency to network
...onfig 9 May 2005 13:48:17 -0000 1.17 +++ contrib/cygwin/ssh-host-config 9 Jan 2006 12:45:45 -0000 @@ -551,14 +551,14 @@ then [ -z "${_cygwin}" ] && _cygwin="ntsec" if [ $_nt2003 -gt 0 -a "${sshd_server_in_sam}" = "yes" ] then - if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D -u sshd_server -w "${_password}" -e "CYGWIN=${_cygwin}" + if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D -u sshd_server -w "${_password}" -e "CYGWIN=${_cygwin}" -y tcpip the...
2002 May 07
0
tunnel connection like a service with cygwin orotherproducts?
Stephan Hendl wrote: >Darren Tucker wrote: >> The first part should be easy: use cygwin openssh client using some kind >> of passwordless authentication (eg RSA). >> >> To make it run entirely in the background, run it from cygrunsrv (part >> of Cygwin) or SRVANY (NT resource kit). Neither of these work on W95, >> only NT or W2K. > > How does the cygrunsrv work? Unfortunately I cannot find this utility in the cygwin distribution... Download the setup.exe from sources.redhat.com/cygwin. You can find cygrunsrv...
2011 Feb 21
1
[PATCH/cygwin]: Revised sshh-host-config script
...# Checks that the files in /etc and /var belong to the right owner +# ====================================================================== +check_service_files_ownership() { + local run_service_as=$1 + local ret=0 + + if [ -z "${run_service_as}" ] + then + accnt_name=$(/usr/bin/cygrunsrv -VQ sshd | /usr/bin/sed -ne 's/^Account *: *//gp') + if [ "${accnt_name}" = "LocalSystem" ] + then + # Convert "LocalSystem" to "SYSTEM" as is the correct account name + accnt_name="SYSTEM:" + elif [[ "${accnt_name}&q...
2004 Dec 29
1
Permission problems running rsync as a Windows service
I've spent a long time searching the archives and can't find a solution to my problem- apologies if I've missed it. I've been running rsync absolutely fine for a couple of months on Win2K server using Win2K & WinXP clients with a 'regular' service installation using cygrunsrv (below). It works excellently except that all the files transferred by rsync have the ownership set to SYSTEM. This is the problem. The command I use to install the service is: cygrunsrv -I "rsync" -p /cygdrive/c/cygwin/bin/rsync.exe -a "--config=/cygdrive/c/cygwin/etc/rsyncd.conf -...
2009 Jul 07
0
[PATCH] contrib/cygwin/ssh-host-config: Improve support for automated updates
...ng a privileged user." @@ -316,12 +323,12 @@ install_service() { if [ -n "${csih_cygenv}" ] then - cygwin_env="-e CYGWIN=\"${csih_cygenv}\"" + cygwin_env=( -e "CYGWIN=${csih_cygenv}" ) fi if [ -z "${password}" ] then - if eval cygrunsrv -I sshd -d \"CYGWIN sshd\" -p /usr/sbin/sshd \ - -a "-D" -y tcpip ${cygwin_env} + if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd \ + -a "-D" -y tcpip "${cygwin_env[@]}" then echo csih_inform "The sshd serv...
2001 Nov 22
5
How to setup Rsync as an NT Service
For a recent project I needed to run Rsync as a service on Windows NT. The following is a link to the instructions I created to recreate my steps. http://members.home.net/cbollerud2/projects/rsync/NTService.html The "no-fork" patch used here is very similar to the "no-detach" option mentioned in many previous posts. I wish I could take credit for it, but I basically put
2004 Jan 03
2
one more thing i forgot...
there is one more thing that you should probably see: this is the error message that cygrunsrv.exe gave me: Eric at ballistic ~ $ cygrunsrv --start sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. this is the error message that "net" gave to me: Eric at ballistic ~ $ net start sshd The CYGWIN sshd service is starti...
2001 Jul 11
0
[PATCH]: Cygwin: Changes to cygwin contrib area
...wnership @@ -37,6 +46,9 @@ Options: --no -n Answer all questions with "no" automatically. --port -p <n> sshd listens on port n. +Additionally ssh-host-config now asks if it should install sshd as a +service when running under NT/W2K. This requires cygrunsrv installed. + You can create the private and public keys for a user now by running /usr/bin/ssh-user-config @@ -53,16 +65,12 @@ Options: --no -n Answer all questions with "no" automatically. --passphrase -p word Use "word" as passphrase automatica...
2005 Sep 27
3
"missing secret for user" using cygwin rsync on Windows XP Home
...false log file = /var/log/rsyncd.log [modulename] path = /cygdrive/c/cygwin/home/backups comment = Rsync storage area read only = false auth users = me secrets file = /cygdrive/c/cygwin/etc/rsyncd.secrets /etc/rsyncd.secrets me:pass The server was started with the following command line: cygrunsrv.exe -I "Rsync" -p /cygdrive/c/cygwin/bin/rsync.exe -a "--config=/cygdrive/c/cygwin/etc/rsyncd.conf --daemon -cc -no-detach" -f "Rsync daemon service" net start rsync The Rsync service is starting. The Rsync service was started successfully. The client was started wit...
2004 Jan 03
1
Cygwin service problems
I'm sorry to bug you guys but when I tried to install the sshd service it didn't work. I'm running the newest build of Cygwin with Openssh and cygrunsrv on windows 2000. The configuration file was supposed to register sshd as a service but the service couldn't start! It was supposed to but it DIDN'T!!!!!!!!!!!!!!! I got instructions that were supposed to work from http://pigtail.net/LRP/printsrv/cygwin-sshd.html i did al of the things it as...
2002 Dec 12
2
rsync to 2000/NT servers?
I'm rsyncing over ssh to unix servers now & am wondering what people who use rsync for their unix boxes do when dealing with win 2000/NT machines? Steve Mallett
2003 Jun 23
1
Installing rsync as a service on Windows 2000.
I was looking to install Rsync on a win2k server, the document telling you how to do this (available at: http://samba.org/rsync/nt.html) is fairly out of date and has a couple of mistakes. An updated version of the "Rsync on NT" document is now available at: http://www.tiarnan.phlegethon.org/rsyncntdoc.html I think I've gotten rid of the mistakes, but if I've missed anything
2005 Jun 11
0
Building NT installer. Need Advice RE: File Structure.
...p1 @! PERSONAL REFERENCE @! 147 files match exactly ----------------------- >> bin\c_rehash bin\chmod.exe bin\chown.exe bin\crypt.exe bin\cygcrypt-0.dll bin\cygcrypto-0.9.7.dll bin\cygiconv-2.dll bin\cygminires.dll bin\cygrunsrv.exe bin\cygssl-0.9.7.dll bin\cygwin1.dll bin\cygz.dll bin\false.exe bin\ls.exe bin\mkdir.exe bin\mkgroup.exe bin\mkpasswd.exe bin\openssl.exe >> bin\openssl_fips_fingerprint bin\rm.exe bin\scp.exe...
2005 Jun 12
0
Building NT installer. Need Advice RE: File Structure.
...p1 @! PERSONAL REFERENCE @! 147 files match exactly ----------------------- >> bin\c_rehash bin\chmod.exe bin\chown.exe bin\crypt.exe bin\cygcrypt-0.dll bin\cygcrypto-0.9.7.dll bin\cygiconv-2.dll bin\cygminires.dll bin\cygrunsrv.exe bin\cygssl-0.9.7.dll bin\cygwin1.dll bin\cygz.dll bin\false.exe bin\ls.exe bin\mkdir.exe bin\mkgroup.exe bin\mkpasswd.exe bin\openssl.exe >> bin\openssl_fips_fingerprint bin\rm.exe bin\scp.exe...
2010 Feb 01
1
case sensitivity, "Match User" and "AllowUsers"
...In any case, the following was sent to comp.security.ssh early last week and I have gotten no response there. Can anyone here shed some light? Thanks, Eric ------------------------------------------ Hello, I'm running an SSH daemon on Cygwin on Windows Server 2003. ?SSH version is 5.1. ?cygrunsrv version is 1.34. I have the following in my sshd_config file. Match User user ? ? ForceCommand start.sh What some users have discovered is that they can log in with arbitrarily mixed case user names. ?For instance, logging in as "usEr" is exactly the same as logging in with "US...
2003 Aug 02
2
rsync on Windows 2000?
What is the status of rsync on Windows 2000? I was looking to install it on my test system, and the download directory has a readme file that says I need the cygnus gnu-win32 library. The link refers me to the index page for cygnus, with no way to get to a download area. A google search shows many mirrors of the download directory. All I have checked are completely blank. I will confess
2006 Aug 02
2
Behaviour that I don't understand
...;t understand. I don't know whether it is an Rsync issue or a Cygwin issue, so I am asking both mailing lists. My WindowsXP machine has ip address 192.168.0.25 and name rabbit.home My Linux machine has ip address 192.168.0.20 and the name roo.home Rsync has been installed as a daemon using cygrunsrv to set up a service using the following command cygrunsrv.exe -I "Rsync" -p /cygdrive/c/cygwin/bin/rsync.exe -a "--config=/cygdrive/c/cygwin/etc/rsyncd.conf --daemon --no-detach" -f "Rsync daemon service" The /etc/rsyncd.conf file has the following in it chroot...
2003 Nov 05
0
[PATCH] contrip/cygwin: Reworking the installation support
...ask if sshd should be installed as service -if [ $_nt -gt 0 ] +if [ ${_nt} -gt 0 ] then - echo - echo "Do you want to install sshd as service?" - if request "(Say \"no\" if it's already installed as service)" + # But only if it is not already installed + if ! cygrunsrv -Q sshd > /dev/null 2>&1 then echo - echo "Which value should the environment variable CYGWIN have when" - echo "sshd starts? It's recommended to set at least \"ntsec\" to be" - echo "able to change user context without password.&quo...