Re: [Proftpd-user] Trouble starting proftpd

Shaoping Xie via Proftp-user <[email protected]> Thu, 3 Nov 2022 02:43:02 +0000 (UTC)
Newsgroups gmane.network.proftpd.user
Message-ID <[email protected]>
 Hi Matus,
    Here is the list of some problems:    
        1. The native SSH host keys in Linux cannot be directly used. The host keys must be created to fit the format requirement by proftpd.
        2. Use "Include" for the additional modules.
        3. Disable the sftp service from native sshd.
        4. Start the proftpd as root.

    My system is working now as expected.
    Thank you,    Shaoping

    On Wednesday, November 2, 2022 at 05:28:14 AM EDT, Matus UHLAR - fantomas <[email protected]> wrote:  
 
 On 01.11.22 21:37, Shaoping Xie via Proftp-user wrote:
>(sfgadmin@nyvmapc20)> uname -a
>
>Linux nyvmapc20 4.18.0-372.19.1.el8_6.x86_64 #1 SMP Mon Jul 18 11:14:02 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
>
>(sfgadmin@nyvmapc20)>
>
>(sfgadmin@nyvmapc20)> proftpd -v
>
>ProFTPD Version 1.3.6e
>
> 
>
>Error from starting proftpd as non-root:
>
>2022-11-01 17:29:34,737 nyvmapc20 proftpd[732075] 10.85.55.110: SocketBindTight in effect, ignoring DefaultServer

proftpd by default bind to any interface, using default server for any 
host/port configuration that is not explicitly set by VirtualHost option.

SocketBindTight turns off this feature, so there is no default virtual 
server and proftpd only listens on interfacet you have configured 
VirtualHosts, to there is no default server. DefaultServer directive is 
useless in this case.

>2022-11-01 17:29:34,749 nyvmapc20 proftpd[732075] 10.85.55.110: mod_ctrls/0.9.5: error: unable to bind to local socket: Address already in use

apparently ControlsSocket can't bind to the socket you have configured, 
because of next issue:

>2022-11-01 17:29:34,750 nyvmapc20 proftpd[732075] 10.85.55.110: unable to set UID to 99, current UID: 18022

you apparently run proftpd from unprivileged user so it can't change to 
proper UID, this apparently causes the message above.

>Error from starting proftpd as root:
>
>2022-11-01 13:06:23,754 nyvmapc20 proftpd[726986] 10.85.55.110: SocketBindTight in effect, ignoring DefaultServer

>PROFTPD cannot be started as expected.

what do you expect from it?


-- 
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The 3 biggets disasters: Hiroshima 45, Tschernobyl 86, Windows 95


_______________________________________________
ProFTPD Users List  <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html

_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html