LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VSFTP errors when creating new users (https://www.linuxquestions.org/questions/linux-newbie-8/vsftp-errors-when-creating-new-users-756637/)

inthewind 09-20-2009 06:26 PM

VSFTP errors when creating new users
 
Hey all,

I'm looking to get FTP working on my Linux server. I've installed VSFTP. I have it running, but when I try to create a new user (htpasswd -c /etc/vsftp/passwd dvd) I g the error cannot create file. I tried under sudo too. One thing I can say that I did following this guide online it
ln -s /var/www www
chown -R <user> /var/www
chmod -R 755 /var/www

I tried to do some reading about this online and the closet I came asked me to install libpam-pwdfile. I found a username:password with htpasswd -bn username pass, but I don't know what directory to put it in a file with. I think I'm just going down deeper the rabbit hole.

Any suggestions would be appreciated. My main goal through Putty is to create a web server I can test my web pages on.
Thanks

Hangdog42 09-21-2009 07:27 AM

Welcome to LQ!

I may be missing something here, but I think that htpasswd creates users that can be used only by Apache. The rest of the system doesn't understand what htpasswd is doing. VSFTP uses the regular system users.

If your looking to upload web pages to a server with ftp, then you would have to log in as your normal user and navigate to the web root directory. Of course your user would have to have write privileges to that directory. Probably a better way of doing this would be to have a web directory in your home and point Apache to that. As long as the Apache user has read privileges it should be good.

inthewind 09-21-2009 04:52 PM

lol, between the two of us, I'm sure I'm the one missing something.

If that is the case, I can't log in using my normal username and password. I get the error: connection closed by remote host. Is there a log or something I can check out?

BTW, thanks for the reply.

Hangdog42 09-21-2009 05:56 PM

Quote:

Is there a log or something I can check out?
Yes, if you look in /var/log vsftpd usually has its own log file. The other file you're going to need to mess with is your /etc/vsftpd.conf. You may need to enable local users to log in and you probably want write to be enabled. There are a bunch of other options as well, so you may want to have a look through the man page and see if there is anything else that jumps out at you as useful or confusing. It is actually pretty simple to configure, but you can get fancy if you want.


All times are GMT -5. The time now is 12:13 AM.