Trying to connect to a vsftpd server

0

I'm trying to create a user using this instructions.

But i'm still getting the login failed message. From local or from a remote machine, when i try connect.

I added the root user to the /etc/vsftp.chroot_list file just writing "root" (without quotes).

Any help?

user35538

Posted 2012-11-05T17:48:22.733

Reputation: 1 207

Did you restart the FTPd so it reread its (changed) configuration file? – Hennes – 2012-11-05T17:50:39.037

@Hennes yes, sudo service vsftpd restart – user35538 – 2012-11-05T17:52:17.897

Did you add the users on the server before adding them to the file? – Der Hochstapler – 2012-11-05T17:54:03.417

@OliverSalzburg well, what i did is adding the root user. Check my question again, I edited it. root is the user that im using to connect to this machine using ssh protocol. – user35538 – 2012-11-05T17:55:48.283

1@user35538: You shouldn't use the root user for any login at all. And if you want to enable it to log in via SSH, why are you messing with the vsftpd config? I would strongly recommend adding a new user account and working with that. – Der Hochstapler – 2012-11-05T17:57:22.200

@OliverSalzburg thanks, I created a new user, and it worked – user35538 – 2012-11-05T18:31:05.863

@user35538: I added the same advice as a proper answer. Happy to hear you were able to resolve the issue :) – Der Hochstapler – 2012-11-05T18:38:57.497

Answers

0

I would advise not to allow the root user to log into your system. Depending on your system, root login may even be disabled (see PermitRootLogin for SSH).

I would assume that vsftpd does not allow root login or some other components prohibit it. You should add a new user to the system and use that for daily operations.

You can add a new user to the system using adduser

sudo adduser bob

Der Hochstapler

Posted 2012-11-05T17:48:22.733

Reputation: 77 228