mpregent

Member
Jun 28, 2004
16
0
151
hi,

i created a normal user through ssh useradd, but i cannot login to ftp with it. does anyone know how to fix this probem?
 

ehpmahesh

Well-Known Member
Jul 3, 2004
74
0
156
What are the entry you are giving like hostname and username and password.
Make sure that you are giving correct entry. Let us know what error you are getting.
For details you can check ftp logs.
 

mpregent

Member
Jun 28, 2004
16
0
151
hostname: surfwebtechnology.com
username: madboy

220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 22:07. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Host type (1): Automatic detect
USER madboy
331 User madboy OK. Password required
PASS (hidden)
530 Authentication failed, sorry


where do i find the ftp logs?
 

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
It will not work .. it has never worked whenever i changed user password from ssh.
Login to WHM and try Resync FTP password or something like that link is there.... thereafter it should work ... works in my case whenever i do a passwd username from ssh

Anup
 

ehpmahesh

Well-Known Member
Jul 3, 2004
74
0
156
You can check xfer log to check ftp log. As per your log it is showing that 530 Authentication failed, sorry it means that it is not taking your password. Also check useradd created /home/madboy directory.
 

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
This is a serious problem. I never really tried changing root password from ssh and then logging off. If the same is reproducible then i am done for the day. So for password changing i always prefer doing it from WHM. Yes for ftpd it's reproducible any number of times user password is changed from ssh.

Anup
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
It won't work if you change a password using passwd because IIRC (and oddly) pure-ftpd on cPanel uses the /etc/proftpd/passwd.vhosts file for authentication, not /etc/passwd and so you have to sync the passwords in WHM which basically copies the passwd record into the pure-ftpd auth file.
 

romanus

Well-Known Member
Jul 17, 2004
68
0
156
where is the resync option in whm please? Thanks