I have gotten access to a server which is configured by another person and I am now at the point where I am not able to access through ftp due to the fact that I do not have the ftp username and password and I cannot seem to be able to find or add a new username and password to the specific directory.
Please help me add username or change password in vsftpd.
Best Answer
By default
vsftpd
users are the ones of the system. So if you have admin access,root
user or a sudoer, you can log in, view the users usinggetent passwd
command andpasswd SomeUser
as root to change her/his password.adduser SomeName
to add a user.Check also for virtual users for
vsftpd
. Insidevsftpd.conf
file search for something like:pam_service_name=
and then locate this file name inside
/etc/pam.d/
In case PAM mechanism is confusing you, a good indication of virtual users is
virtual_use_local_privs=
inside
vsftpd.conf
.