[Solved] Proftp - logging in with a user except root. How to?
Hello;
I've a /www directory and 4-5 sites at there. /www/xxx.com /www/xxx.net etc... I did a "chown -R /www ftp:web" I've set user "ftp"'s home directory as /www I've set a password for user "ftp" I can login with root user. But i can't login any other users. What can i do for logging in with ftp user? I've searched but i can't find any useful information. I'm using proftpd. |
Check that the ftp user is not disabled in the first place. Some distributions include the ftp user but leave it disabled, so that you need to manually enable anonymous FTP (with the assumption being that anon FTP is not what most people will want by default).
Check the file /etc/ftpusers and see what names are listed. Those are the names of the users who cannot use FTP. It would be a good idea to put root into this list, by the way, as logging in as root remotely is a bad idea with any protocol. Failing that, check the proftpd logs when you try and log in with a non-root user. It should give you an error message in the logs which you can use to start troubleshooting. |
No, ftp user is not disabled. It is not at the ftpusers file.
I know logging with root is a bad idea but i can't login any other user. Anon ftp is disabled at my proftpd conf. I know that anon ftp is different than what i want. Do i know wrong? Do i have to enable anon ftp? |
Anonymous FTP is generally linked to the "ftp" user, so disabling it in your ProFTPd configuration would stop that user from logging in.
|
This post's problem is solved.
|
Okay i set the config file for logs. It gives general "wrong password" error.
Code:
server.xxx.com [11556] ::ffff:(MY IP) [06/Mar/2008:15:33:08 +0200] "USER ftpuser" 331 Code:
# Use pam to authenticate (default) and be authoritative /etc/pam.d/proftpd Code:
#%PAM-1.0 What can i do? Do you have an idea? I don't know much about PAM. |
also i looked at /etc/shadow
root user's password looks encrypted but ftpuser's password not encrypted. Can anyone help me please? Edit: okay i tried to overwrite the root's encrypted password to ftpuser's password at /etc/shadow and i can login with ftpuser now with root's password. How can i encrypt user passwords at /etc/shadow? That is the problem for me now. |
Okay okay i solved the problem.
I was updating password like usermod -p passwod ftpuser Now i updated passwords with passwod command. And it works great :) Thanks for reading all. The happy end :) |
All times are GMT -5. The time now is 02:52 PM. |