Problem with FTP access

Started by venty, December 05, 2018, 05:59:15 PM

Previous topic - Next topic

gasonline

#15
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


ehstbr

I updated my server today to version 0.9.8.751 and the FTP issue still unfixed.

ehstbr

I found a workaround... I tested in my server in this scenario:


  • CWP version 0.9.8.751
  • CentOS Linux release 7.6.1810 (Core)
  • FTP version: 1.0.46

In terminal, enter the command below:

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

Source: https://github.com/jedisct1/pure-ftpd/issues/98

ehstbr

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.

venty


ehstbr

Quote from: venty on December 12, 2018, 01:16:32 PM
but this error persists ...

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

sh /scripts/update_cwp
yum update -y


After this... execute the command:

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. :-(

rhunyady

You're a genius!

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

fixed mine! :)

ehstbr

Quote from: rhunyady on December 12, 2018, 06:24:57 PM
You're a genius!

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

fixed mine! :)

No, I'm not... hehe

Thanks to grubberr (https://github.com/grubberr). :-)

studio4host

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

grep "^/sbin/nologin$" /etc/shells || echo "/sbin/nologin" >> /etc/shells
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

ehstbr

Isn't possible edit my replies and change the code that I posted to show yours and avoid issues? =(

venty

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

studio4host

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.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

ehstbr

Quote from: 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

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

sh /scripts/update_cwp

[]'s

venty

I'm already with a CWPpro version: 0.9.8.752, but my problem with a lack of FTP access continues ...?!?!

yunits

#29
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:
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!