LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2009, 07:26 PM   #1
inthewind
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
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 usernameassword 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
 
Old 09-21-2009, 08:27 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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.
 
Old 09-21-2009, 05:52 PM   #3
inthewind
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 09-21-2009, 06:56 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTP Users daveginorge Linux - Server 6 10-18-2008 05:18 AM
vsftp needs SSL for some users jweller Linux - Software 1 07-12-2007 10:08 AM
vsftp SSL cert errors dharm Linux - Security 3 05-22-2006 09:25 PM
VSFTP Virtual users Rage79 Linux - Security 7 01-10-2005 07:57 AM
how to deny all users in vsftp except one? lzyking Linux - Software 7 12-11-2002 11:02 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration