Additional FTP account not getting created

Questions regarding the FTP Server
vsFTPd, ProFTPd
deadbeef
Posts: 12
Joined: Thu Feb 16, 2017 9:00 pm

Re: Additional FTP account not getting created

Postby deadbeef » Sat Feb 18, 2017 9:20 am

skamasle wrote:Can some body explain me how reproduce exactly this in v17 and I will investigate it ?
I create accounts from gui and can access to FTP whit out any problems. in debian and centos.

Have no idea. Accounts are created, but obviously with incorrect password. After I change password in command line everything is fine.

deadbeef
Posts: 12
Joined: Thu Feb 16, 2017 9:00 pm

Re: Additional FTP account not getting created

Postby deadbeef » Sat Feb 18, 2017 9:27 am

Although I just tried again and everything worked... Strange.

Also a confusing thing is that users can access server via SFTP, but additional ftp accounts are only allowed to use FTP and SFTP gives them an "Access denied" error - it took some time to understand that. Maybe you should have some warning while creating additional accounts.

skamasle
Collaborator
Posts: 360
Joined: Mon Feb 29, 2016 6:36 pm

Re: Additional FTP account not getting created

Postby skamasle » Sat Feb 18, 2017 9:42 am

Yes only main account can access to SSH / SFTP additional account is only for FTP.

There is no warning but say " Addtional FTP account" not say additional user / SFTP or SSH account "

Maybe as you orther people have problemas try connecting by sftp :/

deadbeef
Posts: 12
Joined: Thu Feb 16, 2017 9:00 pm

Re: Additional FTP account not getting created

Postby deadbeef » Sat Feb 18, 2017 9:45 am

skamasle wrote:Yes only main account can access to SSH / SFTP additional account is only for FTP.

There is no warning but say " Addtional FTP account" not say additional user / SFTP or SSH account "

Maybe as you orther people have problemas try connecting by sftp :/


Most likely. And probably my trouble was caused by some misprint or extra space in password. Anyway everything is fine for me now, thanks =)

dev7
Posts: 7
Joined: Thu Feb 23, 2017 4:31 pm

Re: Additional FTP account not getting created

Postby dev7 » Thu Feb 23, 2017 4:33 pm

I'm having this same problem, how do I change the password in command line?

deadbeef
Posts: 12
Joined: Thu Feb 16, 2017 9:00 pm

Re: Additional FTP account not getting created

Postby deadbeef » Thu Feb 23, 2017 5:09 pm

dev7 wrote:I'm having this same problem, how do I change the password in command line?

First make sure you're trying to connect using FTP protocol - not SFTP!

dev7
Posts: 7
Joined: Thu Feb 23, 2017 4:31 pm

Re: Additional FTP account not getting created

Postby dev7 » Tue Feb 28, 2017 10:43 am

Yes I am trying to connect with FTP

etc/passwd

Code: Select all

admin_billing:x:1000:1000::/home/admin/web/dev.server.co.uk:/sbin/nologin


There are no errors in the auth.log but i get the error on screen of 'Login incorrect.' after the password is requested. I've tried changing the password, deleting/recreating the user and it still doesnt accept the log in.



if i change this line in /etc/passwd

Code: Select all

admin_billing:x:1000:1000::/home/admin/web/dev.server.co.uk:/bin/nologin


to

Code: Select all

admin_billing:x:1000:1000::/home/admin/web/dev.server.co.uk:/bin/bash


then it is working but is this correct for ftp?

deadbeef
Posts: 12
Joined: Thu Feb 16, 2017 9:00 pm

Re: Additional FTP account not getting created

Postby deadbeef » Tue Feb 28, 2017 11:00 am

Well you can try to set up a new password for that user via SSH:

Code: Select all

sudo passwd admin_billing

But as far as I remember exactly what you described happens when you try to connect via SFTP using additional FTP account. Some FTP clients offer that mode by default.

deadbeef
Posts: 12
Joined: Thu Feb 16, 2017 9:00 pm

Re: Additional FTP account not getting created

Postby deadbeef » Tue Feb 28, 2017 11:03 am

dev7 wrote:if i change this line in /etc/passwd

Code: Select all

admin_billing:x:1000:1000::/home/admin/web/dev.server.co.uk:/bin/nologin

to

Code: Select all

admin_billing:x:1000:1000::/home/admin/web/dev.server.co.uk:/bin/bash

then it is working but is this correct for ftp?

If so - you are definitely trying to connect using SFTP protocol. Revert your settings back to "/bin/nologin" and check connection settings in FTP client again. For example mine has options FTP, FTPES (Explicit), FTPS (Implicit) and SFTP, and correct option is FTP.

dev7
Posts: 7
Joined: Thu Feb 23, 2017 4:31 pm

Re: Additional FTP account not getting created

Postby dev7 » Tue Feb 28, 2017 11:17 am

I'm definitely using FTP,
Image
have just tried it again changing that line back and it gives the same error


Return to “FTP Server”



Who is online

Users browsing this forum: No registered users and 1 guest