Control Web Panel

WebPanel => FTP => Topic started by: Sijmen-NL on February 13, 2018, 12:32:13 PM

Title: FTP user can't login root user can
Post by: Sijmen-NL on February 13, 2018, 12:32:13 PM
what can cause this problem root user can login a user cant login  :(

i have tested it with filezilla and winscp

port forwarding for 30000-50000 passiveports


and a other thing how to force sftp to all users
Title: Re: FTP user can't login root user can
Post by: n8v8r on February 13, 2018, 01:41:49 PM
edit "/etc/ssh/sshd_config"

Specify users/usergroups according to your need

AllowUsers
AllowGroups
DenyUsers
DenyGroups


Set the sftp port in the clients accordingly and specify sftp as protocol. Block tcp port 21 in the server's firewall
Title: Re: FTP user can't login root user can
Post by: Sijmen-NL on February 14, 2018, 10:48:35 AM
stil no luck :-\
Title: Re: FTP user can't login root user can
Post by: n8v8r on February 14, 2018, 11:15:46 AM
Checking the server/client side logs might to narrow down the culprit and troubleshoot the issue
Title: Re: FTP user can't login root user can
Post by: Sijmen-NL on February 20, 2018, 06:21:01 PM
where can i find these logs i use centos 7 CWP version: 0.9.8.494

i know /var/log/ pureftpd.log but that one is empty

Got some more

pure-ftpd.service - Pure-FTPd FTP server
   Loaded: loaded (/usr/lib/systemd/system/pure-ftpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2018-02-20 20:01:42 CET; 3s ago
  Process: 17023 ExecStart=/sbin/pure-ftpd /etc/pure-ftpd/pure-ftpd.conf (code=exited, status=0/SUCCESS)
Main PID: 17024 (pure-ftpd)
   CGroup: /system.slice/pure-ftpd.service
           └─17024 /sbin/pure-ftpd /etc/pure-ftpd/pure-ftpd.conf

Feb 20 20:01:42 srv1.XX systemd[1]: Starting Pure-FTPd FTP server...
Feb 20 20:01:42 srv1.XX systemd[1]: PID file /var/run/pure-ftpd.pid not readable (yet?) after start.
Feb 20 20:01:42 srv1.XX pure-ftpd[17024]: (?@?) [DEBUG] Couldn't load the DH parameters file /etc/ssl/private/pure-ftpd-dhparams.pem
Feb 20 20:01:42 srv1.XX systemd[1]: Started Pure-FTPd FTP server.
Title: Re: FTP user can't login root user can
Post by: Sijmen-NL on February 21, 2018, 10:56:52 AM
littel bit further

Response:   500 I won't open a connection to 192.168.5.134 (only to local wan ip of filezilla)
Error:   Failed to retrieve directory listing
Title: Re: FTP user can't login root user can
Post by: n8v8r on February 21, 2018, 02:29:42 PM
Did you active NAT-end network configuration? And tried http://wiki.centos-webpanel.com/500-internal-server-error ?
Title: Re: FTP user can't login root user can
Post by: Sijmen-NL on February 22, 2018, 01:00:06 PM
yes i did nat and the rights that's the strange thing maby that support can look at this