Re: [pure-ftpd] (ticket ID 56218 ) Difficult getting pure-ftpd to work under Cygwin on Windows 10, esp anonymous ftp
David Oppenheim <[email protected]> Tue, 29 Jun 2021 16:40:05 +1000
| Newsgroups | gmane.network.pureftpd.user |
|---|---|
| Message-ID | <[email protected]> |
For those looking for a quick make-it-work, install pure-ftpd as a
service thus (from a bash you have started as "Run as Administrator") :
cygrunsrv --install pure-ftpd --path /usr/sbin/pure-ftpd --chdir /tmp
--args "-l puredb:/full-path-to/pure-ftpd/pureftpd.pdb"
and then
cygrunsrv --start pure-ftpd
This solves the seteuid() limitation, so now the one server will work with
anonymous (but still needs "ftp" as a Windows user) and any other user in the
puredb passwd file.
````
To: matthew patton <[email protected]>
Matthew, re the Windows privileges you suggest, sadly and according to
Murphy's
law I did all this on my one and only Windows 10 Home Edition ... no
group policy
editor :-( I **could** try it on a Windows 10 Pro PC, or I could
regedit I suppose,
but hey cygrunsrv works so thankyou.
Perhaps an ancillary issue is the cryptic way in some code paths pure-ftpd
gives the error "Unable to set up secure anonymous FTP", sometimes with, but
sometimes without, a syslog... I needed to use gdb extensively to one by one
eliminate blockages and get anonymous to work.
Perhaps more importantly the recipe (cygrunsrv) would be great to have in
the man page of the Cygwin package, and certainly in the README.Windows
file of the source package. I'll cross-post this to pure-ftpd.org
Thanks for your help !
----- Message from matthew patton <[email protected]> ---------
Date: Tue, 29 Jun 2021 00:04:12 +0000 (UTC)
From: matthew patton <[email protected]>
Subject: Re: Difficult getting pure-ftpd to work under Cygwin on
Windows 10, esp anonymous ftp
To: David Oppenheim <[email protected]>
and look at cygrunsrv --start <ftpd>
On Monday, June 28, 2021, 08:00:10 PM EDT, matthew patton
<[email protected]> wrote:
specifically
SeAssignPrimaryTokenPrivilege
SeCreateTokenPrivilege
SeTcbPrivilege
SeIncreaseQuotaPrivilege
SeServiceLogonRight
On Monday, June 28, 2021, 07:58:41 PM EDT, matthew patton via
Cygwin <[email protected]> wrote:
have you tried applying the notable permissions from this to your
'ftp' windows
user?https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/user-rights-assignment