Control Web Panel

WebPanel => FTP => Topic started by: venty on December 05, 2018, 05:59:15 PM

Title: Problem with FTP access
Post by: venty on December 05, 2018, 05:59:15 PM
Hi,

After updating CWP I have the following problem with FTP access, I just can not get in ...

Command:   PASS *
Response:   530 Login authentication failed
Error:   Critical error: Could not connect to server

Thanks in advance!

BR
Venty
Title: Re: Problem with FTP access
Post by: maxwellins on December 05, 2018, 11:51:51 PM
Hi,

After updating CWP I have the following problem with FTP access, I just can not get in ...

Command:   PASS *
Response:   530 Login authentication failed
Error:   Critical error: Could not connect to server

Thanks in advance!

BR
Venty

I also had the same problem, create a new ftp account and try it
Title: Re: Problem with FTP access
Post by: rhunyady on December 06, 2018, 01:37:15 AM
having the same problem here
Title: Re: Problem with FTP access
Post by: Jamshed Datori on December 06, 2018, 01:46:47 AM
Seems to be an issue with Pass Auth function. Change the account password and try again.
Title: Re: Problem with FTP access
Post by: venty on December 06, 2018, 02:02:46 PM
this FTP account is related to a user  and you already had a password ...?!?
Title: Re: Problem with FTP access
Post by: Jamshed Datori on December 07, 2018, 01:44:34 AM
this FTP account is related to a user  and you already had a password ...?!?

I was talking about the main FTP (which is user panel user)
Title: Re: Problem with FTP access
Post by: rhunyady on December 07, 2018, 06:04:22 PM
changing password or creating a new account doesn't fix it
Title: Re: Problem with FTP access
Post by: ehstbr on December 09, 2018, 05:31:40 AM
I have the same problem... I tried change the password of client account, but doesn't works.
Title: Re: Problem with FTP access
Post by: gasonline on December 10, 2018, 11:03:00 AM
Same issue here, change the password don't work,...
Title: Re: Problem with FTP access
Post by: ehstbr on December 10, 2018, 03:55:13 PM
Same issue here, change the password don't work,...

You update the system using YUM Manager?

I have two VPS... in the first the CWP is updated and the packages are updated too using YUM Manager, FTP stop accept logins. In the second  the CWP is updated, but system isn't... and the FTP works well.

[]'s
Title: Re: Problem with FTP access
Post by: gasonline on December 10, 2018, 09:18:13 PM
No, I updated by SSH with yum update

All fine with update except FTP login,...
Title: Re: Problem with FTP access
Post by: ehstbr on December 10, 2018, 10:57:33 PM
No, I updated by SSH with yum update

All fine with update except FTP login,...

The YUM Manager of web panel is the same "yum update" command...

So, it's a point that need attetion, because all cases I know, the FTP issue starts after the update of the system.
Title: Re: Problem with FTP access
Post by: ehstbr on December 11, 2018, 11:21:10 AM
I updated my server last night to version 0.9.8.748 and the FTP issue isn't fixed. =(
Title: Re: Problem with FTP access
Post by: gasonline on December 11, 2018, 07:07:32 PM
Same here,... updated 0.9.8.748 don't fix ftp issue
Title: Re: Problem with FTP access
Post by: ehstbr on December 11, 2018, 07:45:01 PM
Updated CWP to version 0.9.8.749 right now... and the FTP issue don't was fixed.
Title: Re: Problem with FTP access
Post by: gasonline on December 12, 2018, 09:41:19 AM
The same,... 0.9.8.749 don't fix ftp issue

CentOS 6 - CWP version: 0.9.8.573 ftp no issues,... working fine

only ftp issues with CentOS 7 - CWP version: 0.9.8.749

Title: Re: Problem with FTP access
Post by: ehstbr on December 12, 2018, 11:23:12 AM
I updated my server today to version 0.9.8.751 and the FTP issue still unfixed.
Title: Re: Problem with FTP access
Post by: ehstbr on December 12, 2018, 11:52:54 AM
I found a workaround... I tested in my server in this scenario:


In terminal, enter the command below:

Code: [Select]
echo '/sbin/nologin' >> /etc/shells
Source: https://github.com/jedisct1/pure-ftpd/issues/98
Title: Re: Problem with FTP access
Post by: ehstbr on December 12, 2018, 12:15:03 PM
In another server I do a system update using the YUM on a CWP version 0.9.8.751 and the issue with the FTP don't occur.

I think that the FTP login error occur only after a YUM update in a CWP 0.9.8.747 server.
Title: Re: Problem with FTP access
Post by: venty on December 12, 2018, 01:16:32 PM
but this error persists ...
Title: Re: Problem with FTP access
Post by: ehstbr on December 12, 2018, 04:40:11 PM
but this error persists ...

Try execute the "update_cwp" and the "yum update -y".

Code: [Select]
sh /scripts/update_cwp
yum update -y

After this... execute the command:

Code: [Select]
echo '/sbin/nologin' >> /etc/shells
For me the command above fixed the issue... sorry if it don't works to you, I'm not a linux expert. :-(
Title: Re: Problem with FTP access
Post by: rhunyady on December 12, 2018, 06:24:57 PM
You're a genius!

echo '/sbin/nologin' >> /etc/shells

fixed mine! :)
Title: Re: Problem with FTP access
Post by: ehstbr on December 12, 2018, 06:40:10 PM
You're a genius!

echo '/sbin/nologin' >> /etc/shells

fixed mine! :)

No, I'm not... hehe

Thanks to grubberr (https://github.com/grubberr). :-)
Title: Re: Problem with FTP access
Post by: studio4host on December 12, 2018, 10:24:13 PM
you could have a double line if the issue is not related to shell file so there is an improved way how this would need to be done

Code: [Select]
grep "^/sbin/nologin$" /etc/shells || echo "/sbin/nologin" >> /etc/shells
Title: Re: Problem with FTP access
Post by: ehstbr on December 13, 2018, 12:50:29 AM
Isn't possible edit my replies and change the code that I posted to show yours and avoid issues? =(
Title: Re: Problem with FTP access
Post by: venty on December 13, 2018, 05:26:02 AM
Hi,
can anyone say what exactly to do to recover the user's ftp access ...
Here are opinions about how to circumvent the problem that I think is wrong...
BR
Venty
Title: Re: Problem with FTP access
Post by: studio4host on December 13, 2018, 08:45:45 AM
cwp autoupdate has now autodetection for this issue related to centos 7.6 updates so there is no need for this forum topic anymore as cwp will fix this automatically.
Title: Re: Problem with FTP access
Post by: ehstbr on December 14, 2018, 12:48:52 AM
Hi,
can anyone say what exactly to do to recover the user's ftp access ...
Here are opinions about how to circumvent the problem that I think is wrong...
BR
Venty

If your server don't update automatically yet, just force update your CWP using the update_cwp script.

Code: [Select]
sh /scripts/update_cwp
[]'s
Title: Re: Problem with FTP access
Post by: venty on December 14, 2018, 07:39:19 AM
I'm already with a CWPpro version: 0.9.8.752, but my problem with a lack of FTP access continues ...?!?!
Title: Re: Problem with FTP access
Post by: yunits on February 06, 2019, 12:07:56 PM
Hi, I had the same issue on CentOS 7.6 with a newly created FTP User.
After struggling for hours I found that that the password field under FTP Manager->Add User has the following Condition:
Code: [Select]
min="6" maxlength="12"
So just choose a password between 6 and 12 and you should be fine.


This should also be mentioned in any Wiki or changed!
Title: Re: Problem with FTP access
Post by: dandumit on February 09, 2019, 07:39:00 AM
Guys, Please help.
This is driving me crazy.
I have tried all your recommendations above but no luck. any other hints ?
Title: Re: Problem with FTP access
Post by: rdy4ever on April 11, 2019, 12:19:46 PM
Hi, I had the same issue on CentOS 7.6 with a newly created FTP User.
After struggling for hours I found that that the password field under FTP Manager->Add User has the following Condition:
Code: [Select]
min="6" maxlength="12"
So just choose a password between 6 and 12 and you should be fine.


This should also be mentioned in any Wiki or changed!

This worked. The stupid thing is there is no message with this requirement when creating the user, nor a validation error for the password.
Title: Re: Problem with FTP access
Post by: Com-QuadTech on April 13, 2019, 02:46:59 PM
Hi, I had the same issue on CentOS 7.6 with a newly created FTP User.
After struggling for hours I found that that the password field under FTP Manager->Add User has the following Condition:
Code: [Select]
min="6" maxlength="12"
So just choose a password between 6 and 12 and you should be fine.


This should also be mentioned in any Wiki or changed!

he is right in everything is so concerned about security and the ftp only simple passwords - that's the joke high in 2000