LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   FTP Password Error (https://www.linuxquestions.org/questions/linux-general-1/ftp-password-error-480370/)

animelook 09-04-2006 03:30 PM

FTP Password Error
 
I am in the process of switching servers, and I am attempting to set up FTP- unfortunately I can't find the sheet I wrote everything down on as far as setting FTP up went, so I've had to guess at some things. At any rate, this is what I did:
Code:

# groupadd webadmin
# useradd -g webadmin webadmin
# passwd webadmin
(entered password)
# mkdir /var/www/htdocs
# chown :webadmin /var/www/htdocs
# chmod g+w /var/www/htdocs
# nano /etc/apache2/sites-available/default
  -changed DocumentRoot from /var/www to /var/www/htdocs
#nano /etc/passwd
  -changed webadmin's home dir to /var/www/htdocs

I am using VSFTP. This is what I changed in it's config file:
CODE
Code:

# Uncomment this to allow local users to log in.
local_enable=YES

# Uncomment this to enable any form of FTP write command.
write_enable=YES

# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=YES

#Add the following lines at the end of the file
file_open_mode=0644
local_umask=0022

When I tried to log on in FileZilla, I get the error "Unable to connect!" So did I forget to do something, or did I do something wrong?

Also, my Dynamic IP is configured, as is my router- the server works, I just cant connect in FTP.

Thanks for any and all help,
K-kun

w3bd3vil 09-04-2006 07:55 PM

have you started the vsftpd daemon, check you using
ftp localhost
if you get an error, cannot connect that means you havent started the service

animelook 09-04-2006 09:58 PM

I did what you said- I am definately conncted... but it says my login is incorrect. I think I missed something when setting FTP up, but I can't figure out what...

twantrd 09-05-2006 05:03 AM

Quote:

I did what you said- I am definately conncted... but it says my login is incorrect. I think I missed something when setting FTP up, but I can't figure out what...
And when you log in, not through ftp, through ssh the password is correct for the user right?

You probably need to set up vsftpd with pam. Try that and you should be able to authenticate.

-twantrd

animelook 09-05-2006 01:23 PM

How exactly do I got about setting up vsftpd and pam? I tried looking for tutorials, but I didn't find anything... sorry, I'm a bit of a newbie at all this.

twantrd 09-07-2006 10:41 PM

Have you tried the suggestions from the below link?

http://www.linuxforums.org/forum/red...ease-help.html

-twantrd


All times are GMT -5. The time now is 03:11 AM.