LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-28-2006, 04:22 AM   #1
drum2jc
Member
 
Registered: Aug 2004
Location: Arroyo Grande, Ca
Distribution: Ubuntu 6.06
Posts: 49

Rep: Reputation: 15
ftp users


Hi there, I'm using Ubuntu 5.10 and want to add users to proftpd, so that they can login and have access to only their own directory. since the web root is /var/www, then i guess each user should have a folder like ~username, and could access that dir from the web root.

problem is that i dont know how to add users to the ftp server. any help?

thanks,
chris
 
Old 05-28-2006, 04:24 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You can just give them actual accounts:
man useradd

Then, in your proftpd file, you would do something like:
DefaultRoot ~

And restrict them to their home directory, which will be unique for each user.

HTH

Cool
 
Old 05-28-2006, 06:53 PM   #3
drum2jc
Member
 
Registered: Aug 2004
Location: Arroyo Grande, Ca
Distribution: Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
okay, well i managed to add the users and can ssh to my server with them, but they cant ftp. and the DefaultRoot thing didn't work. what i'm trying to do is give them access so when they log in via ftp, the root directory that they get put into is their own web root, and i want it to be accessable at http://myserver.com/~username

i'm just not good with the config files
 
Old 05-29-2006, 06:02 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
When they FTP in, they'll be in their 'home' directory. In that directory you can create a folder called public_html, in which they can create files that Apache serves up like you noted http://blah.com/~cooldude

There are some troubleshooting steps you can take, probably the best I can think of is to check the log and see why they are failing.

If they can ssh in, I'm assuming they do indeed have a home directory, so that's probably not the problem. It may be your authentication system isn't working properly, which might be noted when the failed attempt is logged.

If you find out it's an authetication issue (from the logs), check out this page:
http://www.castaglia.org/proftpd/doc...ntication.html

Otherwise, feel free to post back with what your logs say so we can pick at em!

Cool
 
Old 05-30-2006, 05:30 AM   #5
drum2jc
Member
 
Registered: Aug 2004
Location: Arroyo Grande, Ca
Distribution: Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
alright. well i made the public_html folder and that works just dandy. (i didn't know apache automatically served that, good thing to know). but the ftp login still doent work.

i opened up my /var/log/auth.log to check stuff out and found that a korean high school's ip address is trying to brute force my server. :\ hm. i'll deal with that later


anyway, this is what i get in the log from proftpd when trying to login

May 30 03:25:59 localhost proftpd: (pam_unix) session opened for user matt by (uid=0)
May 30 03:25:59 localhost proftpd[15913]: localhost.localdomain (192.168.1.100[192.168.1.100]) - USER matt (Login failed): Invalid shell: ''

(my computer's ip is .100 - i'm working on a local network)

not quite sure how to get around the "invalid shell".


chris
 
Old 05-30-2006, 06:34 AM   #6
drum2jc
Member
 
Registered: Aug 2004
Location: Arroyo Grande, Ca
Distribution: Ubuntu 6.06
Posts: 49

Original Poster
Rep: Reputation: 15
okay, i solved that and can now login via ftp.
i added "RequireValidShell off" to the proftpd.conf file

thanks for your help!
 
  


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
How to setup FTP users only users on LInux Fedora Soujiro Linux - Newbie 8 09-13-2010 07:34 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
ftp users peteABK Linux - Software 0 05-22-2003 12:33 PM
Wu-FTP users??? jay3351 Linux - Networking 1 02-27-2003 12:39 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:28 PM.

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