This is the mail archive of the cygwin-apps@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: ITP: ProFTPD


Corinna,

On Thu, May 15, 2003 at 12:53:45PM +0200, Corinna Vinschen wrote:
> There is a problem here, actually.  The problem is that the group
> names are not the same in different native versions of Windows.
> Therefore it might be better to use numerical values for the groups as
> default:
> 
> chown 18.544 /var/proftd

I was going to do the above for exactly the reason given.  I was bitten
by this before in a previous life...

> /etc/proftpd.conf:
> 
>   # Set the user and group under which the server will run.
>   # ==============================================================
>   # NOTE: The numerical defaults are chosen so that it runs
>   # on Cygwin with a higher probabilty on different native
>   # Windows versions.  Change these values to something sensible
>   # for your system. 
>   # Keep in mind to change ownership of /var/proftd appropriately.
>   # ==============================================================
>   User 18
>   Group 544

I have already added the following to my build script:

    # edit proftpd configuration file as appropriate for Cygwin
    sed -e 's/^User/#&/' -e 's/^Group/#&/' -e 's/nobody$/SYSTEM/' \
        -e 's/nogroup$/Administrators/' $EtcDir/$ConfigFile.default \
        >$EtcDir/$ConfigFile.tmp
    mv $EtcDir/$ConfigFile.tmp $EtcDir/$ConfigFile.default

The above changes the following proftpd.conf.default lines:

    User                nobody
    Group               nogroup

to:

    #User                SYSTEM
    #Group               Administrators

which I think is a little more self-documenting and are the compiled in
defaults anyway.

> Or create a proftpd-install script in /usr/bin which allows
> interactive settings as in e. g. ssh-host-config.

Unfortunately, Cygwin proftpd only functions correctly when run under
SYSTEM and Administrators, so the above is moot.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6


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