LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-06-2004, 01:07 PM   #1
neo.sarcastic
LQ Newbie
 
Registered: Aug 2003
Distribution: Slack
Posts: 15

Rep: Reputation: 0
Question newbie with vsftpd questions


hi there, total newb to this stuff. got some time off this week, thought i might try setting up my ftp server.

using vsftp on rh9 fresh install. (so i haven't tinkered with it)

got it running, connects fine through router and all.

problem:
I have found a tutorial on creating users and placing them in a ftpusers group. their home dir is a new one i created called /ftpdocs

I gave the group chmod 750 to thier home dir (ftpdocs)

earlier this week i created a user via the users and groups manager from kde. i did not modify permissions with this user, a home dir was created and i accepted all defaults.

The users and the group i created today were created from an ssh session on another machine.
When i go to logon through ftp with one of these users i get an error that the server has terminated the connection. thats it.

When i go to logon to the user who i created earlier with all defaults i connect fine with no errors, i can read, write etc.

what am i missing. the /var/logs tell me only that the account that connected was successfull.

I have not modified the vsftpd.conf file other than uncommenting write_enable=YES
the following is also uncommented
local_enable=YES
listen=YES
TCP_wrappers=YES

Whats wrong?

I can paste my vsftpd.conf file if needed. oh and i have also verified that the user_lists are not containing any of these users.
I think it has someting to do with the default dir. Why isn't there an entry in the vsftpd.conf file for setting this?

Thanks for any help. but go easy on me.

Cheers
 
Old 10-14-2004, 03:07 PM   #2
bullium
Member
 
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146

Rep: Reputation: 17
I had the same problem at one point. Once the user is successfully logged in the connection is established, when vsftp tries to put that user in their home directory and its not there or the permissions are wrong you get a quick disconnect. The ssh default is going to be "/home/username" unless you specified otherwise. So what is prolly going on is that when the "new" users log in they are going to a directory "/home/username" in which case I'm sure the proper permissions airn't set. I think you have to options:

1. Make sure your "new" users home directories are set to the "/ftpdocs" and not "/home/username".

2. Change the permissions on the "/home/username" directories.

Hope this was of some help any more questions just let me know I'll try to help. Also try this site out for some more helpfull tips http://vsftpdrocks.org
 
  


Reply



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
another vsftpd questions boToo Linux - Newbie 1 12-29-2005 10:25 AM
Vsftpd Questions john_d13 Linux - Networking 1 12-18-2004 05:33 AM
Newbie Questions... bopo119 Linux - Networking 8 03-29-2004 11:28 PM
vsftpd newbie question shahab Linux - Networking 1 11-27-2003 08:38 PM
NEWBIE: Why does my vsftpd hang when I log in using virtual users? mr_r Red Hat 0 11-18-2003 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:40 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
Open Source Consulting | Domain Registration